From: David Blaikie Date: Sun, 5 Apr 2015 22:53:21 +0000 (+0000) Subject: [opaque pointer type] Remove some backwards compatible GEP APIs X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=5ede7d8209c60882762af47a2a49a1b14b2456a0 [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) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234132 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/IRBuilder.h b/include/llvm/IR/IRBuilder.h index f5920ab0984..9c4ba078995 100644 --- a/include/llvm/IR/IRBuilder.h +++ b/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);