summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMon P Wang <wangmp@apple.com>2009-02-28 00:25:30 +0000
committerMon P Wang <wangmp@apple.com>2009-02-28 00:25:30 +0000
commit9feb5dd5685d8d52f40f2d88a1125bff8d67adfe (patch)
tree1fa79cbd01ea74d3faac35efa040626f17d8b6f5
parentb1789b003c7eb10cae8efa8bd0f5db251978381f (diff)
downloadexternal_llvm-9feb5dd5685d8d52f40f2d88a1125bff8d67adfe.zip
external_llvm-9feb5dd5685d8d52f40f2d88a1125bff8d67adfe.tar.gz
external_llvm-9feb5dd5685d8d52f40f2d88a1125bff8d67adfe.tar.bz2
Added another darwin subtarget
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65662 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86Subtarget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp
index cd292a4..6d2602a 100644
--- a/lib/Target/X86/X86Subtarget.cpp
+++ b/lib/Target/X86/X86Subtarget.cpp
@@ -369,6 +369,10 @@ X86Subtarget::X86Subtarget(const Module &M, const std::string &FS, bool is64Bit)
} else if (TT.find("windows") != std::string::npos) {
TargetType = isWindows;
}
+ else if (TT.find("-cl") != std::string::npos) {
+ TargetType = isDarwin;
+ DarwinVers = 9;
+ }
} else if (TT.empty()) {
#if defined(__CYGWIN__)
TargetType = isCygwin;