diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-08-05 16:17:22 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-08-05 16:17:22 +0000 |
| commit | 8c636bf8b2ec58ce1d81951789480eca440419ce (patch) | |
| tree | f7732e6236ac73f928251f6f7b35f5bc85542204 | |
| parent | 6e709c13183257b80b158e89fcab8436c72e1ee3 (diff) | |
| download | bcm5719-llvm-8c636bf8b2ec58ce1d81951789480eca440419ce.tar.gz bcm5719-llvm-8c636bf8b2ec58ce1d81951789480eca440419ce.zip | |
don't crash when running the PPC backend on non-ppc hosts without specifying
a subtarget.
llvm-svn: 22677
| -rw-r--r-- | llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp b/llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp index 8e640899bc2..009f4ebe633 100644 --- a/llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp +++ b/llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp @@ -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; |

