forked from OSchip/llvm-project
X86Subtarget.h: isTargetWindows() should tell whether he is targeting msvc.
FYI, !isWindowsGNUEnvironment() is insufficient. It missed cygwin. FIXME: The name "isTargetWindows" should be fixed. llvm-svn: 205124
This commit is contained in:
parent
c339840666
commit
09717bd1c4
|
@ -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…
Reference in New Issue