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 | 4e624ecd0713d8444e7ec6054877b01e86ebd104 (patch) | |
| tree | b7ffbab7b34174a8b96219b6e8f60f5b79105002 /lib/Target/PowerPC/PPCTargetMachine.cpp | |
| parent | d7231ac523eb8d5c6a6b09e223e957cb99f9d446 (diff) | |
| download | external_llvm-4e624ecd0713d8444e7ec6054877b01e86ebd104.zip external_llvm-4e624ecd0713d8444e7ec6054877b01e86ebd104.tar.gz external_llvm-4e624ecd0713d8444e7ec6054877b01e86ebd104.tar.bz2 | |
don't crash when running the PPC backend on non-ppc hosts without specifying
a subtarget.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCTargetMachine.cpp')
| -rw-r--r-- | lib/Target/PowerPC/PPCTargetMachine.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Target/PowerPC/PPCTargetMachine.cpp b/lib/Target/PowerPC/PPCTargetMachine.cpp index 8e64089..009f4eb 100644 --- a/lib/Target/PowerPC/PPCTargetMachine.cpp +++ b/lib/Target/PowerPC/PPCTargetMachine.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; |
