From 9feb5dd5685d8d52f40f2d88a1125bff8d67adfe Mon Sep 17 00:00:00 2001 From: Mon P Wang Date: Sat, 28 Feb 2009 00:25:30 +0000 Subject: [PATCH] Added another darwin subtarget git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65662 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86Subtarget.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp index cd292a4a2c6..6d2602a2ce9 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;