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/Transforms | |
| 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/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp index 2f83cc8961b..1a5ef00cdb6 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -1196,7 +1196,7 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) { // facts about the relocate value, while being careful to // preserve relocation semantics. GCRelocateOperands Operands(II); - Value *DerivedPtr = Operands.derivedPtr(); + Value *DerivedPtr = Operands.getDerivedPtr(); // Remove the relocation if unused, note that this check is required // to prevent the cases below from looping forever. diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index 3da3559ca1f..9cb0748c515 100644 --- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp @@ -1336,7 +1336,8 @@ insertRelocationStores(iterator_range<Value::user_iterator> gcRelocs, } GCRelocateOperands relocateOperands(relocatedValue); - Value *originalValue = const_cast<Value *>(relocateOperands.derivedPtr()); + Value *originalValue = + const_cast<Value *>(relocateOperands.getDerivedPtr()); assert(allocaMap.count(originalValue)); Value *alloca = allocaMap[originalValue]; |

