diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-05-20 21:28:28 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-05-20 21:28:28 +0000 |
commit | 07418cde47c328f382144acd1972fabcf1529d11 (patch) | |
tree | ae09469deef34c201bb0d5d2efdc49884e302d76 /lib/CodeGen/DwarfEHPrepare.cpp | |
parent | d02c8f4066ddf35f606582d914ee17834cb14e15 (diff) | |
download | llvm-07418cde47c328f382144acd1972fabcf1529d11.tar.gz llvm-07418cde47c328f382144acd1972fabcf1529d11.tar.bz2 llvm-07418cde47c328f382144acd1972fabcf1529d11.tar.xz |
No need to store the TargetMachine variable in this class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182317 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/DwarfEHPrepare.cpp')
-rw-r--r-- | lib/CodeGen/DwarfEHPrepare.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/CodeGen/DwarfEHPrepare.cpp b/lib/CodeGen/DwarfEHPrepare.cpp index f27ec770eb..31c8e5948d 100644 --- a/lib/CodeGen/DwarfEHPrepare.cpp +++ b/lib/CodeGen/DwarfEHPrepare.cpp @@ -32,7 +32,6 @@ STATISTIC(NumResumesLowered, "Number of resume calls lowered"); namespace { class DwarfEHPrepare : public FunctionPass { - const TargetMachine *TM; const TargetLoweringBase *TLI; // RewindFunction - _Unwind_Resume or the target equivalent. @@ -43,9 +42,8 @@ namespace { public: static char ID; // Pass identification, replacement for typeid. - DwarfEHPrepare(const TargetMachine *tm) : - FunctionPass(ID), TM(tm), TLI(TM->getTargetLowering()), - RewindFunction(0) { + DwarfEHPrepare(const TargetMachine *TM) : + FunctionPass(ID), TLI(TM->getTargetLowering()), RewindFunction(0) { initializeDominatorTreePass(*PassRegistry::getPassRegistry()); } |