summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-01-31 01:22:03 +0000
committerBill Wendling <isanbard@gmail.com>2012-01-31 01:22:03 +0000
commit0c2d82b942dae353533694561b4b8fe4026d676c (patch)
treeb97bb3907bff10fcc907f9d977b6efa1596b26b4 /llvm/lib/Transforms/Utils/InlineFunction.cpp
parent290e6ba165d6d1b9dbe7c2c8b3bc8cd17a85b430 (diff)
downloadbcm5719-llvm-0c2d82b942dae353533694561b4b8fe4026d676c.tar.gz
bcm5719-llvm-0c2d82b942dae353533694561b4b8fe4026d676c.zip
Remove unused ivars and s/getOuterUnwindDest/getOuterResumeDest/g.
llvm-svn: 149322
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/InlineFunction.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index a8eae34be59..c75b51eb517 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud