Reverting r85338 for now. It's causing a bootstrap failure on PPC darwin9.
[oota-llvm.git] / lib / CodeGen / LLVMTargetMachine.cpp
index e58a9ca82c6d42f82fdbf0ec7b316e5aa5edf2e2..1000b2e3809071675b600e3c87a897ccfb2b51dd 100644 (file)
@@ -239,11 +239,11 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
   {
   case ExceptionHandling::SjLj:
     // SjLj piggy-backs on dwarf for this bit. The cleanups done apply to both
-    PM.add(createDwarfEHPass(getTargetLowering(), OptLevel==CodeGenOpt::None));
+    PM.add(createDwarfEHPass(getTargetLowering()));
     PM.add(createSjLjEHPass(getTargetLowering()));
     break;
   case ExceptionHandling::Dwarf:
-    PM.add(createDwarfEHPass(getTargetLowering(), OptLevel==CodeGenOpt::None));
+    PM.add(createDwarfEHPass(getTargetLowering()));
     break;
   case ExceptionHandling::None:
     PM.add(createLowerInvokePass(getTargetLowering()));