[IR] Remove deprecated GetElementPtrInst constructors

Remove deprecated constructors that are incompatible with opaque
pointers. These have been deprecated since before the LLVM 13
release.
This commit is contained in:
Nikita Popov 2021-12-01 11:41:59 +01:00
parent c12c7a84b0
commit 8ee55ab6c0
1 changed files with 0 additions and 18 deletions

View File

@ -975,15 +975,6 @@ public:
NameStr, InsertAtEnd);
}
LLVM_ATTRIBUTE_DEPRECATED(static GetElementPtrInst *CreateInBounds(
Value *Ptr, ArrayRef<Value *> IdxList, const Twine &NameStr = "",
Instruction *InsertBefore = nullptr),
"Use the version with explicit element type instead") {
return CreateInBounds(
Ptr->getType()->getScalarType()->getPointerElementType(), Ptr, IdxList,
NameStr, InsertBefore);
}
/// Create an "inbounds" getelementptr. See the documentation for the
/// "inbounds" flag in LangRef.html for details.
static GetElementPtrInst *
@ -996,15 +987,6 @@ public:
return GEP;
}
LLVM_ATTRIBUTE_DEPRECATED(static GetElementPtrInst *CreateInBounds(
Value *Ptr, ArrayRef<Value *> IdxList, const Twine &NameStr,
BasicBlock *InsertAtEnd),
"Use the version with explicit element type instead") {
return CreateInBounds(
Ptr->getType()->getScalarType()->getPointerElementType(), Ptr, IdxList,
NameStr, InsertAtEnd);
}
static GetElementPtrInst *CreateInBounds(Type *PointeeType, Value *Ptr,
ArrayRef<Value *> IdxList,
const Twine &NameStr,