summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-09-28 03:07:34 +0000
committerBill Wendling <isanbard@gmail.com>2011-09-28 03:07:34 +0000
commite6138e3ad1e760ac4d0c6d0884195672e41a85f9 (patch)
treed90a4e1a359aa252a627903ae00e9bfa8a0d61ed /llvm/lib/CodeGen
parent5ac1e8e6b185bad88406ddec1c741f235bfa9940 (diff)
downloadbcm5719-llvm-e6138e3ad1e760ac4d0c6d0884195672e41a85f9.tar.gz
bcm5719-llvm-e6138e3ad1e760ac4d0c6d0884195672e41a85f9.zip
Don't conditionalize execution of the SjLj EH prepare pass.
We may need an SjLj EH preparation pass for some call site information, at least in the short term. llvm-svn: 140674
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index 9196816b351..8f463e2d3f9 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -45,9 +45,6 @@ namespace llvm {
bool EnableFastISel;
}
-static cl::opt<bool> DisableOldSjLjEH("disable-old-sjlj-eh", cl::Hidden,
- cl::desc("Disable the old SjLj EH preparation pass"));
-
static cl::opt<bool> DisablePostRA("disable-post-ra", cl::Hidden,
cl::desc("Disable Post Regalloc"));
static cl::opt<bool> DisableBranchFold("disable-branch-fold", cl::Hidden,
@@ -325,8 +322,7 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
// removed from the parent invoke(s). This could happen when a landing
// pad is shared by multiple invokes and is also a target of a normal
// edge from elsewhere.
- if (!DisableOldSjLjEH)
- PM.add(createSjLjEHPass(getTargetLowering()));
+ PM.add(createSjLjEHPass(getTargetLowering()));
// FALLTHROUGH
case ExceptionHandling::DwarfCFI:
case ExceptionHandling::ARM:
OpenPOWER on IntegriCloud