[llvm-commits] CVS: llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Aug 5 09:17:33 PDT 2005



Changes in directory llvm/lib/Target/PowerPC:

PowerPCTargetMachine.cpp updated: 1.59 -> 1.60
---
Log message:

don't crash when running the PPC backend on non-ppc hosts without specifying
a subtarget.


---
Diffs of the changes:  (+1 -3)

 PowerPCTargetMachine.cpp |    4 +---
 1 files changed, 1 insertion(+), 3 deletions(-)


Index: llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp
diff -u llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp:1.59 llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp:1.60
--- llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp:1.59	Thu Aug  4 15:49:48 2005
+++ llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp	Fri Aug  5 11:17:22 2005
@@ -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;






More information about the llvm-commits mailing list