mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-02 17:29:03 +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. llvm-svn: 205124
This commit is contained in:
parent
2e92c81970
commit
81cbcfd543
@ -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