From: Sanjoy Das Date: Sat, 20 Jun 2015 00:01:03 +0000 (+0000) Subject: [Statepoint] Remove unnecessary argument from Statepoint::getRelocates X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ac9af6c151bb640071609aace1ff49572411dabb;p=oota-llvm.git [Statepoint] Remove unnecessary argument from Statepoint::getRelocates NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240198 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/Statepoint.h b/include/llvm/IR/Statepoint.h index 623a5a6100c..8159cde3425 100644 --- a/include/llvm/IR/Statepoint.h +++ b/include/llvm/IR/Statepoint.h @@ -198,7 +198,7 @@ public: /// May contain several relocations for the same base/derived pair. /// For example this could happen due to relocations on unwinding /// path of invoke. - std::vector getRelocates(ImmutableStatepoint &IS); + std::vector getRelocates(); #ifndef NDEBUG /// Asserts if this statepoint is malformed. Common cases for failure @@ -315,12 +315,11 @@ public: template std::vector -StatepointBase::getRelocates( - ImmutableStatepoint &IS) { +StatepointBase::getRelocates() { std::vector Result; - ImmutableCallSite StatepointCS = IS.getCallSite(); + CallSiteTy StatepointCS = getCallSite(); // Search for relocated pointers. Note that working backwards from the // gc_relocates ensures that we only get pairs which are actually relocated diff --git a/lib/CodeGen/SelectionDAG/StatepointLowering.cpp b/lib/CodeGen/SelectionDAG/StatepointLowering.cpp index 914ff405c4c..a6b3fc6c4d4 100644 --- a/lib/CodeGen/SelectionDAG/StatepointLowering.cpp +++ b/lib/CodeGen/SelectionDAG/StatepointLowering.cpp @@ -372,8 +372,7 @@ static void getIncomingStatepointGCValues( SmallVectorImpl &Bases, SmallVectorImpl &Ptrs, SmallVectorImpl &Relocs, ImmutableStatepoint StatepointSite, SelectionDAGBuilder &Builder) { - for (GCRelocateOperands relocateOpers : - StatepointSite.getRelocates(StatepointSite)) { + for (GCRelocateOperands relocateOpers : StatepointSite.getRelocates()) { Relocs.push_back(relocateOpers.getUnderlyingCallSite().getInstruction()); Bases.push_back(relocateOpers.getBasePtr()); Ptrs.push_back(relocateOpers.getDerivedPtr()); @@ -573,8 +572,7 @@ static void lowerStatepointMetaArgs(SmallVectorImpl &Ops, FunctionLoweringInfo::StatepointSpilledValueMapTy &SpillMap = Builder.FuncInfo.StatepointRelocatedValues[StatepointInstr]; - for (GCRelocateOperands RelocateOpers : - StatepointSite.getRelocates(StatepointSite)) { + for (GCRelocateOperands RelocateOpers : StatepointSite.getRelocates()) { const Value *V = RelocateOpers.getDerivedPtr(); SDValue SDV = Builder.getValue(V); SDValue Loc = Builder.StatepointLowering.getLocation(SDV);