[PATCH] Add missing mingw-w64 case for Triple -> TargetInfo mapping
Keno Fischer
kfischer at college.harvard.edu
Tue Aug 5 23:30:05 PDT 2014
mingw-w64 triples define os=MinGW32. This adds the missing mapping.
http://reviews.llvm.org/D4804
Files:
lib/Basic/Targets.cpp
Index: lib/Basic/Targets.cpp
===================================================================
--- lib/Basic/Targets.cpp
+++ lib/Basic/Targets.cpp
@@ -6397,6 +6397,8 @@
return new MinixTargetInfo<X86_32TargetInfo>(Triple);
case llvm::Triple::Solaris:
return new SolarisTargetInfo<X86_32TargetInfo>(Triple);
+ case llvm::Triple::MinGW32:
+ return new MinGWX86_32TargetInfo(Triple);
case llvm::Triple::Win32: {
switch (Triple.getEnvironment()) {
default:
@@ -6443,6 +6445,8 @@
return new KFreeBSDTargetInfo<X86_64TargetInfo>(Triple);
case llvm::Triple::Solaris:
return new SolarisTargetInfo<X86_64TargetInfo>(Triple);
+ case llvm::Triple::MinGW32:
+ return new MinGWX86_64TargetInfo(Triple);
case llvm::Triple::Win32: {
switch (Triple.getEnvironment()) {
default:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4804.12221.patch
Type: text/x-patch
Size: 856 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140806/94aaadb4/attachment.bin>
More information about the cfe-commits
mailing list