summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-10-29 00:37:35 +0000
committerBill Wendling <isanbard@gmail.com>2009-10-29 00:37:35 +0000
commit3505c949239067733542822edf257a10524ee1cc (patch)
tree1f8daad88eed0aed1d429da2c064d554d76c7236 /llvm/lib/CodeGen/LLVMTargetMachine.cpp
parenta6f3e7edebc1a2dc467bc066c9f0ab21998ead2e (diff)
downloadbcm5719-llvm-3505c949239067733542822edf257a10524ee1cc.tar.gz
bcm5719-llvm-3505c949239067733542822edf257a10524ee1cc.zip
Don't put in these EH changes.
llvm-svn: 85460
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index 1000b2e3809..e58a9ca82c6 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -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()));
+ PM.add(createDwarfEHPass(getTargetLowering(), OptLevel==CodeGenOpt::None));
PM.add(createSjLjEHPass(getTargetLowering()));
break;
case ExceptionHandling::Dwarf:
- PM.add(createDwarfEHPass(getTargetLowering()));
+ PM.add(createDwarfEHPass(getTargetLowering(), OptLevel==CodeGenOpt::None));
break;
case ExceptionHandling::None:
PM.add(createLowerInvokePass(getTargetLowering()));
OpenPOWER on IntegriCloud