[llvm] r229722 - Remove unused member variables (-Wunused-private-field)

David Blaikie dblaikie at gmail.com
Wed Feb 18 10:52:49 PST 2015


Author: dblaikie
Date: Wed Feb 18 12:52:49 2015
New Revision: 229722

URL: http://llvm.org/viewvc/llvm-project?rev=229722&view=rev
Log:
Remove unused member variables (-Wunused-private-field)

Modified:
    llvm/trunk/lib/CodeGen/WinEHPrepare.cpp

Modified: llvm/trunk/lib/CodeGen/WinEHPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/WinEHPrepare.cpp?rev=229722&r1=229721&r2=229722&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/WinEHPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/WinEHPrepare.cpp Wed Feb 18 12:52:49 2015
@@ -60,10 +60,8 @@ private:
 
 class WinEHCatchDirector : public CloningDirector {
 public:
-  WinEHCatchDirector(LandingPadInst *LPI, Function *CatchFn, Value *Selector,
-                     Value *EHObj)
-      : LPI(LPI), CatchFn(CatchFn),
-        CurrentSelector(Selector->stripPointerCasts()), EHObj(EHObj),
+  WinEHCatchDirector(LandingPadInst *LPI, Value *Selector, Value *EHObj)
+      : LPI(LPI), CurrentSelector(Selector->stripPointerCasts()), EHObj(EHObj),
         SelectorIDType(Type::getInt32Ty(LPI->getContext())),
         Int8PtrType(Type::getInt8PtrTy(LPI->getContext())) {}
   virtual ~WinEHCatchDirector() {}
@@ -74,7 +72,6 @@ public:
 
 private:
   LandingPadInst *LPI;
-  Function *CatchFn;
   Value *CurrentSelector;
   Value *EHObj;
   Type *SelectorIDType;
@@ -84,7 +81,6 @@ private:
   const Value *ExtractedSelector;
   const Value *EHPtrStoreAddr;
   const Value *SelectorStoreAddr;
-  const Value *EHObjStoreAddr;
 };
 } // end anonymous namespace
 
@@ -245,7 +241,7 @@ bool WinEHPrepare::outlineCatchHandler(F
 
   // FIXME: Map other values referenced in the filter handler.
 
-  WinEHCatchDirector Director(LPad, CatchHandler, SelectorType, EHObj);
+  WinEHCatchDirector Director(LPad, SelectorType, EHObj);
 
   SmallVector<ReturnInst *, 8> Returns;
   ClonedCodeInfo InlinedFunctionInfo;





More information about the llvm-commits mailing list