[cfe-commits] r124660 - /cfe/trunk/lib/Basic/Targets.cpp
Douglas Gregor
dgregor at apple.com
Tue Feb 1 07:06:18 PST 2011
Author: dgregor
Date: Tue Feb 1 09:06:18 2011
New Revision: 124660
URL: http://llvm.org/viewvc/llvm-project?rev=124660&view=rev
Log:
Support EFI target triple, from Carl Norum!
Modified:
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=124660&r1=124659&r2=124660&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Tue Feb 1 09:06:18 2011
@@ -2675,7 +2675,10 @@
case llvm::Triple::MinGW64:
return new MinGWX86_64TargetInfo(T);
case llvm::Triple::Win32: // This is what Triple.h supports now.
- return new VisualStudioWindowsX86_64TargetInfo(T);
+ if (Triple.getEnvironment() == llvm::Triple::MachO)
+ return new DarwinX86_64TargetInfo(T);
+ else
+ return new VisualStudioWindowsX86_64TargetInfo(T);
default:
return new X86_64TargetInfo(T);
}
More information about the cfe-commits
mailing list