[opaque pointer type] Remove some backwards compatible GEP APIs
[oota-llvm.git] / include / llvm / IR / IRBuilder.h
index f5920ab0984803fad4696cf4c0270bfd5e7be9f9..9c4ba0789952484d6c3f7a7d248b2ea15a5aae12 100644 (file)
@@ -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);