diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-05-06 02:36:26 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-05-06 02:36:26 +0000 |
commit | 499d703f52c0dd5c11551ab2166e0a77c52a0053 (patch) | |
tree | 3b5e04d18b66a374055ee3daaa3067297a2ef26b /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | c6bf3e9f127589de828434b581d267b8f8c5ac4e (diff) | |
download | bcm5719-llvm-499d703f52c0dd5c11551ab2166e0a77c52a0053.tar.gz bcm5719-llvm-499d703f52c0dd5c11551ab2166e0a77c52a0053.zip |
[Statepoint] Clean up Statepoint.h: accessor names.
Use getFoo() as accessors consistently and some other naming changes.
llvm-svn: 236564
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index 35376e162d3..49836254356 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -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; |