Skip to content

Commit

Permalink
[IR] Remove deprecated GetElementPtrInst constructors
Browse files Browse the repository at this point in the history
Remove deprecated constructors that are incompatible with opaque
pointers. These have been deprecated since before the LLVM 13
release.
  • Loading branch information
nikic committed Dec 1, 2021
1 parent c12c7a8 commit 8ee55ab
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions llvm/include/llvm/IR/Instructions.h
Expand Up @@ -975,15 +975,6 @@ class GetElementPtrInst : public Instruction {
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 *
Expand All @@ -996,15 +987,6 @@ class GetElementPtrInst : public Instruction {
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,
Expand Down

0 comments on commit 8ee55ab

Please sign in to comment.