diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-04-05 22:53:21 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-04-05 22:53:21 +0000 |
commit | 907628d24dfbaa59674f9130ed02e3fe90a9c4df (patch) | |
tree | 388e8da8e5ebb03bc0ebf9015094125c7594dc27 | |
parent | f0e3d50d52ad827cd7f74dd33851ad794484b631 (diff) | |
download | bcm5719-llvm-907628d24dfbaa59674f9130ed02e3fe90a9c4df.tar.gz bcm5719-llvm-907628d24dfbaa59674f9130ed02e3fe90a9c4df.zip |
[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)
llvm-svn: 234132
-rw-r--r-- | llvm/include/llvm/IR/IRBuilder.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/include/llvm/IR/IRBuilder.h b/llvm/include/llvm/IR/IRBuilder.h index f5920ab0984..9c4ba078995 100644 --- a/llvm/include/llvm/IR/IRBuilder.h +++ b/llvm/include/llvm/IR/IRBuilder.h @@ -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); |