[llvm-commits] [llvm] r48694 - /llvm/trunk/lib/Target/X86/X86Subtarget.cpp
Anton Korobeynikov
asl at math.spbu.ru
Sat Mar 22 14:12:53 PDT 2008
Author: asl
Date: Sat Mar 22 16:12:53 2008
New Revision: 48694
URL: http://llvm.org/viewvc/llvm-project?rev=48694&view=rev
Log:
Recognize "windows" in target triple, not only "win32"
Modified:
llvm/trunk/lib/Target/X86/X86Subtarget.cpp
Modified: llvm/trunk/lib/Target/X86/X86Subtarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86Subtarget.cpp?rev=48694&r1=48693&r2=48694&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86Subtarget.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86Subtarget.cpp Sat Mar 22 16:12:53 2008
@@ -268,6 +268,8 @@
TargetType = isMingw;
} else if (TT.find("win32") != std::string::npos) {
TargetType = isWindows;
+ } else if (TT.find("windows") != std::string::npos) {
+ TargetType = isWindows;
}
} else if (TT.empty()) {
#if defined(__CYGWIN__)
More information about the llvm-commits
mailing list