From: NAKAMURA Takumi Date: Sun, 30 Mar 2014 04:35:00 +0000 (+0000) Subject: X86Subtarget.h: isTargetWindows() should tell whether he is targeting msvc. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5de8a15a7eace49d01c979b82bb2ddf3258fd49b;p=oota-llvm.git 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 --- diff --git a/lib/Target/X86/X86Subtarget.h b/lib/Target/X86/X86Subtarget.h index d66d8595059..a8e97e61032 100644 --- a/lib/Target/X86/X86Subtarget.h +++ b/lib/Target/X86/X86Subtarget.h @@ -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 {