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:
NAKAMURA Takumi 2014-03-30 04:35:00 +00:00
parent 2e92c81970
commit 81cbcfd543

View File

@ -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 {