diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-10-29 00:37:35 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-10-29 00:37:35 +0000 |
commit | 8bedf97f683bd5edb9308799a5e525de137d635c (patch) | |
tree | fcc12f795ced9d301bef9ca3f1e11fb997788f94 /lib/CodeGen/LLVMTargetMachine.cpp | |
parent | f25cf3d56f54a1f736db066924e6db886b3f5f3d (diff) |
Don't put in these EH changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85460 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r-- | lib/CodeGen/LLVMTargetMachine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index 1000b2e380..e58a9ca82c 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/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())); |