mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
[Statepoint] Clean up Statepoint.h: accessor names.
Use getFoo() as accessors consistently and some other naming changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236564 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -531,8 +531,8 @@ static void computeBaseDerivedRelocateMap(
|
||||
for (auto &U : AllRelocateCalls) {
|
||||
GCRelocateOperands ThisRelocate(U);
|
||||
IntrinsicInst *I = cast<IntrinsicInst>(U);
|
||||
auto K = std::make_pair(ThisRelocate.basePtrIndex(),
|
||||
ThisRelocate.derivedPtrIndex());
|
||||
auto K = std::make_pair(ThisRelocate.getBasePtrIndex(),
|
||||
ThisRelocate.getDerivedPtrIndex());
|
||||
RelocateIdxMap.insert(std::make_pair(K, I));
|
||||
}
|
||||
for (auto &Item : RelocateIdxMap) {
|
||||
@ -581,15 +581,15 @@ simplifyRelocatesOffABase(IntrinsicInst *RelocatedBase,
|
||||
GCRelocateOperands MasterRelocate(RelocatedBase);
|
||||
GCRelocateOperands ThisRelocate(ToReplace);
|
||||
|
||||
assert(ThisRelocate.basePtrIndex() == MasterRelocate.basePtrIndex() &&
|
||||
assert(ThisRelocate.getBasePtrIndex() == MasterRelocate.getBasePtrIndex() &&
|
||||
"Not relocating a derived object of the original base object");
|
||||
if (ThisRelocate.basePtrIndex() == ThisRelocate.derivedPtrIndex()) {
|
||||
if (ThisRelocate.getBasePtrIndex() == ThisRelocate.getDerivedPtrIndex()) {
|
||||
// A duplicate relocate call. TODO: coalesce duplicates.
|
||||
continue;
|
||||
}
|
||||
|
||||
Value *Base = ThisRelocate.basePtr();
|
||||
auto Derived = dyn_cast<GetElementPtrInst>(ThisRelocate.derivedPtr());
|
||||
Value *Base = ThisRelocate.getBasePtr();
|
||||
auto Derived = dyn_cast<GetElementPtrInst>(ThisRelocate.getDerivedPtr());
|
||||
if (!Derived || Derived->getPointerOperand() != Base)
|
||||
continue;
|
||||
|
||||
|
Reference in New Issue
Block a user