Note that we don't support COFF on PPC.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 19 Mar 2015 02:40:56 +0000 (02:40 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 19 Mar 2015 02:40:56 +0000 (02:40 +0000)
Should bring back the windows bots.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232701 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Triple.cpp
test/CodeGen/PowerPC/mature-mc-support.ll

index 4b4ee283e64b1186a522d841b5304ceaade311e7..58af8d9175d8f6058b0130e447303f19c5d72321 100644 (file)
@@ -453,6 +453,13 @@ static Triple::ObjectFormatType getDefaultFormat(const Triple &T) {
   case Triple::sparcv9:
   case Triple::systemz:
   case Triple::xcore:
+  case Triple::ppc64le:
+    return Triple::ELF;
+
+  case Triple::ppc:
+  case Triple::ppc64:
+    if (T.isOSDarwin())
+      return Triple::MachO;
     return Triple::ELF;
   }
 
index 7c83e184a6f8a2859af4f34690aee0c7ffccb3a5..aa387f6e26667faceca0581cb1b5ee4e4ab18f2e 100644 (file)
 ; RUN: not llc -march=ppc32 -filetype=obj < %s > /dev/null 2> %t2
 ; RUN: FileCheck %s < %t2
 
+; Test that we don't try to produce COFF for ppc.
+; RUN: not llc -mtriple=powerpc-mingw32 -filetype=obj < %s > /dev/null 2> %t2
+; RUN: FileCheck %s < %t2
+
 ; SKIP: not llc -march=ppc64 < %s > /dev/null 2> %t3
 ; SKIP: FileCheck %s < %t3