diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-03-30 04:35:00 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-03-30 04:35:00 +0000 |
commit | 09717bd1c4250bcd2754f317083f54efe3e5b55d (patch) | |
tree | b102b1cac258fa470d72ac9947db849a3999528f /llvm/lib/Target/X86/X86Subtarget.h | |
parent | c339840666b469c6de9b79bae5e73bc36cdfd819 (diff) | |
download | bcm5719-llvm-09717bd1c4250bcd2754f317083f54efe3e5b55d.tar.gz bcm5719-llvm-09717bd1c4250bcd2754f317083f54efe3e5b55d.zip |
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
Diffstat (limited to 'llvm/lib/Target/X86/X86Subtarget.h')
-rw-r--r-- | llvm/lib/Target/X86/X86Subtarget.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86Subtarget.h b/llvm/lib/Target/X86/X86Subtarget.h index d66d8595059..a8e97e61032 100644 --- a/llvm/lib/Target/X86/X86Subtarget.h +++ b/llvm/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 { |