forked from OSchip/llvm-project
[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:
parent
c12c7a84b0
commit
8ee55ab6c0
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue