Support EFI target triple, from Carl Norum!

llvm-svn: 124660
This commit is contained in:
Douglas Gregor 2011-02-01 15:06:18 +00:00
parent 142777224c
commit de7a357a30
1 changed files with 4 additions and 1 deletions

View File

@ -2675,7 +2675,10 @@ static TargetInfo *AllocateTarget(const std::string &T) {
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);
}