1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 13:11:39 +01:00

[Statepoint] Remove unnecessary argument from Statepoint::getRelocates

NFC.

llvm-svn: 240198
This commit is contained in:
Sanjoy Das 2015-06-20 00:01:03 +00:00
parent aae1b2bbd9
commit 135b5cb956
2 changed files with 5 additions and 8 deletions

View File

@ -198,7 +198,7 @@ public:
/// May contain several relocations for the same base/derived pair. /// May contain several relocations for the same base/derived pair.
/// For example this could happen due to relocations on unwinding /// For example this could happen due to relocations on unwinding
/// path of invoke. /// path of invoke.
std::vector<GCRelocateOperands> getRelocates(ImmutableStatepoint &IS); std::vector<GCRelocateOperands> getRelocates();
#ifndef NDEBUG #ifndef NDEBUG
/// Asserts if this statepoint is malformed. Common cases for failure /// Asserts if this statepoint is malformed. Common cases for failure
@ -315,12 +315,11 @@ public:
template <typename InstructionTy, typename ValueTy, typename CallSiteTy> template <typename InstructionTy, typename ValueTy, typename CallSiteTy>
std::vector<GCRelocateOperands> std::vector<GCRelocateOperands>
StatepointBase<InstructionTy, ValueTy, CallSiteTy>::getRelocates( StatepointBase<InstructionTy, ValueTy, CallSiteTy>::getRelocates() {
ImmutableStatepoint &IS) {
std::vector<GCRelocateOperands> Result; std::vector<GCRelocateOperands> Result;
ImmutableCallSite StatepointCS = IS.getCallSite(); CallSiteTy StatepointCS = getCallSite();
// Search for relocated pointers. Note that working backwards from the // Search for relocated pointers. Note that working backwards from the
// gc_relocates ensures that we only get pairs which are actually relocated // gc_relocates ensures that we only get pairs which are actually relocated

View File

@ -372,8 +372,7 @@ static void getIncomingStatepointGCValues(
SmallVectorImpl<const Value *> &Bases, SmallVectorImpl<const Value *> &Ptrs, SmallVectorImpl<const Value *> &Bases, SmallVectorImpl<const Value *> &Ptrs,
SmallVectorImpl<const Value *> &Relocs, ImmutableStatepoint StatepointSite, SmallVectorImpl<const Value *> &Relocs, ImmutableStatepoint StatepointSite,
SelectionDAGBuilder &Builder) { SelectionDAGBuilder &Builder) {
for (GCRelocateOperands relocateOpers : for (GCRelocateOperands relocateOpers : StatepointSite.getRelocates()) {
StatepointSite.getRelocates(StatepointSite)) {
Relocs.push_back(relocateOpers.getUnderlyingCallSite().getInstruction()); Relocs.push_back(relocateOpers.getUnderlyingCallSite().getInstruction());
Bases.push_back(relocateOpers.getBasePtr()); Bases.push_back(relocateOpers.getBasePtr());
Ptrs.push_back(relocateOpers.getDerivedPtr()); Ptrs.push_back(relocateOpers.getDerivedPtr());
@ -573,8 +572,7 @@ static void lowerStatepointMetaArgs(SmallVectorImpl<SDValue> &Ops,
FunctionLoweringInfo::StatepointSpilledValueMapTy &SpillMap = FunctionLoweringInfo::StatepointSpilledValueMapTy &SpillMap =
Builder.FuncInfo.StatepointRelocatedValues[StatepointInstr]; Builder.FuncInfo.StatepointRelocatedValues[StatepointInstr];
for (GCRelocateOperands RelocateOpers : for (GCRelocateOperands RelocateOpers : StatepointSite.getRelocates()) {
StatepointSite.getRelocates(StatepointSite)) {
const Value *V = RelocateOpers.getDerivedPtr(); const Value *V = RelocateOpers.getDerivedPtr();
SDValue SDV = Builder.getValue(V); SDValue SDV = Builder.getValue(V);
SDValue Loc = Builder.StatepointLowering.getLocation(SDV); SDValue Loc = Builder.StatepointLowering.getLocation(SDV);