[cfe-commits] r134425 - /cfe/trunk/lib/Basic/Targets.cpp
Joerg Sonnenberger
joerg at bec.de
Tue Jul 5 11:24:04 PDT 2011
Author: joerg
Date: Tue Jul 5 13:24:04 2011
New Revision: 134425
URL: http://llvm.org/viewvc/llvm-project?rev=134425&view=rev
Log:
Hook up mipsel-netbsd and mipsel-freebsd for OS specific handling.
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=134425&r1=134424&r2=134425&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Tue Jul 5 13:24:04 2011
@@ -2853,13 +2853,20 @@
}
case llvm::Triple::mipsel:
- if (os == llvm::Triple::Psp)
+ switch (os) {
+ case llvm::Triple::Psp:
return new PSPTargetInfo<MipselTargetInfo>(T);
- if (os == llvm::Triple::Linux)
+ case llvm::Triple::Linux:
return new LinuxTargetInfo<MipselTargetInfo>(T);
- if (os == llvm::Triple::RTEMS)
+ case llvm::Triple::RTEMS:
return new RTEMSTargetInfo<MipselTargetInfo>(T);
- return new MipselTargetInfo(T);
+ case llvm::Triple::FreeBSD:
+ return new NetBSDTargetInfo<MipselTargetInfo>(T);
+ case llvm::Triple::NetBSD:
+ return new NetBSDTargetInfo<MipselTargetInfo>(T);
+ default:
+ return new MipsTargetInfo(T);
+ }
case llvm::Triple::ppc:
if (Triple.isOSDarwin())
More information about the cfe-commits
mailing list