Skip to content

Commit 9fbcdfc

Browse files
committed
[IR] Remove deprecated PointerType::getWithSamePointeeType()
As the deprecation message says, use PointerType::get(LLVMContext &, unsigned) instead.
1 parent cee5b87 commit 9fbcdfc

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

llvm/include/llvm/IR/DerivedTypes.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -669,17 +669,6 @@ class PointerType : public Type {
669669
return PointerType::get(C, 0);
670670
}
671671

672-
/// This constructs a pointer type with the same pointee type as input
673-
/// PointerType (or opaque pointer if the input PointerType is opaque) and the
674-
/// given address space. This is only useful during the opaque pointer
675-
/// transition.
676-
/// TODO: remove after opaque pointer transition is complete.
677-
[[deprecated("Use PointerType::get() with LLVMContext argument instead")]]
678-
static PointerType *getWithSamePointeeType(PointerType *PT,
679-
unsigned AddressSpace) {
680-
return get(PT->getContext(), AddressSpace);
681-
}
682-
683672
/// Return true if the specified type is valid as a element type.
684673
static bool isValidElementType(Type *ElemTy);
685674

0 commit comments

Comments
 (0)