diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-01-31 01:22:03 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-01-31 01:22:03 +0000 |
commit | 4dbd9b8ebfddb845c5675bbf2567a4d0e04871e7 (patch) | |
tree | e63a427b2d583d0d7716e4aed8d1b72764f89b3a /lib/Transforms | |
parent | 6e69442416c23c3c56a335120662557d6bed2fae (diff) | |
download | external_llvm-4dbd9b8ebfddb845c5675bbf2567a4d0e04871e7.zip external_llvm-4dbd9b8ebfddb845c5675bbf2567a4d0e04871e7.tar.gz external_llvm-4dbd9b8ebfddb845c5675bbf2567a4d0e04871e7.tar.bz2 |
Remove unused ivars and s/getOuterUnwindDest/getOuterResumeDest/g.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149322 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Utils/InlineFunction.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/Transforms/Utils/InlineFunction.cpp b/lib/Transforms/Utils/InlineFunction.cpp index a8eae34..c75b51e 100644 --- a/lib/Transforms/Utils/InlineFunction.cpp +++ b/lib/Transforms/Utils/InlineFunction.cpp @@ -42,22 +42,17 @@ namespace { /// A class for recording information about inlining through an invoke. class InvokeInliningInfo { BasicBlock *OuterUnwindDest; - EHSelectorInst *OuterSelector; - BasicBlock *InnerUnwindDest; - PHINode *InnerExceptionPHI; - PHINode *InnerSelectorPHI; - SmallVector<Value*, 8> UnwindDestPHIValues; // FIXME: New EH - These will replace the analogous ones above. BasicBlock *OuterResumeDest; //< Destination of the invoke's unwind. BasicBlock *InnerResumeDest; //< Destination for the callee's resume. LandingPadInst *CallerLPad; //< LandingPadInst associated with the invoke. PHINode *InnerEHValuesPHI; //< PHI for EH values from landingpad insts. + SmallVector<Value*, 8> UnwindDestPHIValues; public: InvokeInliningInfo(InvokeInst *II) - : OuterUnwindDest(II->getUnwindDest()), OuterSelector(0), - InnerUnwindDest(0), InnerExceptionPHI(0), InnerSelectorPHI(0), + : OuterUnwindDest(II->getUnwindDest()), OuterResumeDest(II->getUnwindDest()), InnerResumeDest(0), CallerLPad(0), InnerEHValuesPHI(0) { // If there are PHI nodes in the unwind destination block, we need to keep @@ -76,7 +71,7 @@ namespace { /// The outer unwind destination is the target of unwind edges /// introduced for calls within the inlined function. - BasicBlock *getOuterUnwindDest() const { + BasicBlock *getOuterResumeDest() const { return OuterUnwindDest; } @@ -201,7 +196,7 @@ static bool HandleCallsInBlockInlinedThroughInvoke(BasicBlock *BB, ImmutableCallSite CS(CI); SmallVector<Value*, 8> InvokeArgs(CS.arg_begin(), CS.arg_end()); InvokeInst *II = InvokeInst::Create(CI->getCalledValue(), Split, - Invoke.getOuterUnwindDest(), + Invoke.getOuterResumeDest(), InvokeArgs, CI->getName(), BB); II->setCallingConv(CI->getCallingConv()); II->setAttributes(CI->getAttributes()); |