Index: lib/CodeGen/TargetInfo.cpp |
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp |
index df4f91e78d26d11280d6921af16dfd55370bd8c1..df6192490589784a999657e12c8e7d69782b940d 100644 |
--- a/lib/CodeGen/TargetInfo.cpp |
+++ b/lib/CodeGen/TargetInfo.cpp |
@@ -7055,6 +7055,8 @@ const TargetCodeGenInfo &CodeGenModule::getTargetCodeGenInfo() { |
return *(TheTargetCodeGenInfo = new PNaClTargetCodeGenInfo(Types)); |
case llvm::Triple::mips: |
case llvm::Triple::mipsel: |
+ if (Triple.getOS() == llvm::Triple::NaCl) |
+ return *(TheTargetCodeGenInfo = new PNaClTargetCodeGenInfo(Types)); |
return *(TheTargetCodeGenInfo = new MIPSTargetCodeGenInfo(Types, true)); |
case llvm::Triple::mips64: |