From: Mon P Wang Date: Sat, 28 Feb 2009 00:25:30 +0000 (+0000) Subject: Added another darwin subtarget X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9feb5dd5685d8d52f40f2d88a1125bff8d67adfe;p=oota-llvm.git Added another darwin subtarget git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65662 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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;