don't crash when running the PPC backend on non-ppc hosts without specifying
authorChris Lattner <sabre@nondot.org>
Fri, 5 Aug 2005 16:17:22 +0000 (16:17 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 5 Aug 2005 16:17:22 +0000 (16:17 +0000)
a subtarget.

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

lib/Target/PowerPC/PPCTargetMachine.cpp

index 8e640899bc29a93b9b213b5e60f7ad0f02afd98a..009f4ebe633187ccfae04d95ae5b4b54084398b6 100644 (file)
@@ -138,12 +138,10 @@ bool PowerPCTargetMachine::addPassesToEmitFile(PassManager &PM,
   // Decide which asm printer to use.  If the user has not specified one on
   // the command line, choose whichever one matches the default (current host).
   switch (PPCTarget) {
-  case TargetDefault:
-    assert(0 && "Default host has no asm printer!");
-    break;
   case TargetAIX:
     PM.add(createAIXAsmPrinter(Out, *this));
     break;
+  case TargetDefault:
   case TargetDarwin:
     PM.add(createDarwinAsmPrinter(Out, *this));
     break;