summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/DwarfEHPrepare.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-05-20 21:54:18 +0000
committerBill Wendling <isanbard@gmail.com>2013-05-20 21:54:18 +0000
commiteda5418e89d1f7c9ef801b0c5945e0f1d7dcfffb (patch)
tree63be24e6b6cc85c4dd8bec5505f75bdcd35dc006 /llvm/lib/CodeGen/DwarfEHPrepare.cpp
parent52d598e24269664825a6ec60e3373af4418f17c2 (diff)
downloadbcm5719-llvm-eda5418e89d1f7c9ef801b0c5945e0f1d7dcfffb.tar.gz
bcm5719-llvm-eda5418e89d1f7c9ef801b0c5945e0f1d7dcfffb.zip
The DWARF EH pass doesn't need the TargetMachine, only the TargetLoweringBase like the other EH passes.
llvm-svn: 182321
Diffstat (limited to 'llvm/lib/CodeGen/DwarfEHPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/DwarfEHPrepare.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/DwarfEHPrepare.cpp b/llvm/lib/CodeGen/DwarfEHPrepare.cpp
index 31c8e5948d9..ecfe6f3f469 100644
--- a/llvm/lib/CodeGen/DwarfEHPrepare.cpp
+++ b/llvm/lib/CodeGen/DwarfEHPrepare.cpp
@@ -42,8 +42,8 @@ namespace {
public:
static char ID; // Pass identification, replacement for typeid.
- DwarfEHPrepare(const TargetMachine *TM) :
- FunctionPass(ID), TLI(TM->getTargetLowering()), RewindFunction(0) {
+ DwarfEHPrepare(const TargetLoweringBase *TLI) :
+ FunctionPass(ID), TLI(TLI), RewindFunction(0) {
initializeDominatorTreePass(*PassRegistry::getPassRegistry());
}
@@ -59,8 +59,8 @@ namespace {
char DwarfEHPrepare::ID = 0;
-FunctionPass *llvm::createDwarfEHPass(const TargetMachine *tm) {
- return new DwarfEHPrepare(tm);
+FunctionPass *llvm::createDwarfEHPass(const TargetLoweringBase *TLI) {
+ return new DwarfEHPrepare(TLI);
}
/// GetExceptionObject - Return the exception object from the value passed into
OpenPOWER on IntegriCloud