Skip to content

Commit

Permalink
[IR] Remove deprecated PointerType::getWithSamePointeeType()
Browse files Browse the repository at this point in the history
As the deprecation message says, use PointerType::get(LLVMContext &, unsigned) instead.
  • Loading branch information
aeubanks committed Dec 5, 2023
1 parent cee5b87 commit 9fbcdfc
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions llvm/include/llvm/IR/DerivedTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -669,17 +669,6 @@ class PointerType : public Type {
return PointerType::get(C, 0);
}

/// This constructs a pointer type with the same pointee type as input
/// PointerType (or opaque pointer if the input PointerType is opaque) and the
/// given address space. This is only useful during the opaque pointer
/// transition.
/// TODO: remove after opaque pointer transition is complete.
[[deprecated("Use PointerType::get() with LLVMContext argument instead")]]
static PointerType *getWithSamePointeeType(PointerType *PT,
unsigned AddressSpace) {
return get(PT->getContext(), AddressSpace);
}

/// Return true if the specified type is valid as a element type.
static bool isValidElementType(Type *ElemTy);

Expand Down

0 comments on commit 9fbcdfc

Please sign in to comment.