From eda5418e89d1f7c9ef801b0c5945e0f1d7dcfffb Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 20 May 2013 21:54:18 +0000 Subject: The DWARF EH pass doesn't need the TargetMachine, only the TargetLoweringBase like the other EH passes. llvm-svn: 182321 --- llvm/lib/CodeGen/DwarfEHPrepare.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/lib/CodeGen/DwarfEHPrepare.cpp') 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 -- cgit v1.2.3