[llvm] r234132 - [opaque pointer type] Remove some backwards compatible GEP APIs
David Blaikie
dblaikie at gmail.com
Sun Apr 5 15:53:22 PDT 2015
Author: dblaikie
Date: Sun Apr 5 17:53:21 2015
New Revision: 234132
URL: http://llvm.org/viewvc/llvm-project?rev=234132&view=rev
Log:
[opaque pointer type] Remove some backwards compatible GEP APIs
Just doing the two-step so I don't get so much build-bot spam... (add
new API, migrate callers, remove old API)
Modified:
llvm/trunk/include/llvm/IR/IRBuilder.h
Modified: llvm/trunk/include/llvm/IR/IRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/IRBuilder.h?rev=234132&r1=234131&r2=234132&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/IRBuilder.h (original)
+++ llvm/trunk/include/llvm/IR/IRBuilder.h Sun Apr 5 17:53:21 2015
@@ -1100,10 +1100,6 @@ public:
return Insert(GetElementPtrInst::Create(Ty, Ptr, Idxs), Name);
}
- Value *CreateConstInBoundsGEP2_32(Value *Ptr, unsigned Idx0, unsigned Idx1,
- const Twine &Name = "") {
- return CreateConstInBoundsGEP2_32(nullptr, Ptr, Idx0, Idx1, Name);
- }
Value *CreateConstInBoundsGEP2_32(Type *Ty, Value *Ptr, unsigned Idx0,
unsigned Idx1, const Twine &Name = "") {
Value *Idxs[] = {
@@ -1158,9 +1154,6 @@ public:
return Insert(GetElementPtrInst::CreateInBounds(nullptr, Ptr, Idxs), Name);
}
- Value *CreateStructGEP(Value *Ptr, unsigned Idx, const Twine &Name = "") {
- return CreateStructGEP(nullptr, Ptr, Idx, Name);
- }
Value *CreateStructGEP(Type *Ty, Value *Ptr, unsigned Idx,
const Twine &Name = "") {
return CreateConstInBoundsGEP2_32(Ty, Ptr, 0, Idx, Name);
More information about the llvm-commits
mailing list