don't crash when running the PPC backend on non-ppc hosts without specifying
a subtarget.
llvm-svn: 22677
diff --git a/llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp b/llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp
index 8e64089..009f4eb 100644
--- a/llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp
+++ b/llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp
@@ -138,12 +138,10 @@
// 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;