mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 06:33:21 +00:00
X86Subtarget.h: isTargetWindows() should tell whether he is targeting msvc.
FYI, !isWindowsGNUEnvironment() is insufficient. It missed cygwin. FIXME: The name "isTargetWindows" should be fixed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205124 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
79300d8d9a
commit
5de8a15a7e
@ -344,8 +344,7 @@ public:
|
||||
bool isTargetNaCl32() const { return isTargetNaCl() && !is64Bit(); }
|
||||
bool isTargetNaCl64() const { return isTargetNaCl() && is64Bit(); }
|
||||
bool isTargetWindows() const {
|
||||
return TargetTriple.isOSWindows() &&
|
||||
!TargetTriple.isWindowsGNUEnvironment();
|
||||
return TargetTriple.isKnownWindowsMSVCEnvironment();
|
||||
}
|
||||
bool isTargetMingw() const { return TargetTriple.isWindowsGNUEnvironment(); }
|
||||
bool isTargetCygwin() const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user