summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-03-22 21:12:53 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-03-22 21:12:53 +0000
commit07a789d2b5ba9be584278272e7f117d332c31285 (patch)
treef50a0332fece0e59022806d33f32fc9de1c88cbf /llvm/lib
parente3605ac1086c68bb07361f7e3735583b103cc31e (diff)
downloadbcm5719-llvm-07a789d2b5ba9be584278272e7f117d332c31285.tar.gz
bcm5719-llvm-07a789d2b5ba9be584278272e7f117d332c31285.zip
Recognize "windows" in target triple, not only "win32"
llvm-svn: 48694
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86Subtarget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86Subtarget.cpp b/llvm/lib/Target/X86/X86Subtarget.cpp
index 019b65c6deb..aff36a117a7 100644
--- a/llvm/lib/Target/X86/X86Subtarget.cpp
+++ b/llvm/lib/Target/X86/X86Subtarget.cpp
@@ -268,6 +268,8 @@ X86Subtarget::X86Subtarget(const Module &M, const std::string &FS, bool is64Bit)
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__)
OpenPOWER on IntegriCloud