[llvm-commits] [llvm] r149322 - /llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp
Bill Wendling
isanbard at gmail.com
Mon Jan 30 17:22:03 PST 2012
Author: void
Date: Mon Jan 30 19:22:03 2012
New Revision: 149322
URL: http://llvm.org/viewvc/llvm-project?rev=149322&view=rev
Log:
Remove unused ivars and s/getOuterUnwindDest/getOuterResumeDest/g.
Modified:
llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp
Modified: llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp?rev=149322&r1=149321&r2=149322&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp Mon Jan 30 19:22:03 2012
@@ -42,22 +42,17 @@
/// 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 @@
/// 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 @@
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());
More information about the llvm-commits
mailing list