No need to store the TargetMachine variable in this class.
authorBill Wendling <isanbard@gmail.com>
Mon, 20 May 2013 21:28:28 +0000 (21:28 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 20 May 2013 21:28:28 +0000 (21:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182317 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/DwarfEHPrepare.cpp

index f27ec770ebad83ab223a01c62d260d4f7169e528..31c8e5948d974faf61869572b95a29ea9a2acf12 100644 (file)
@@ -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());
       }