[llvm] 9fbcdfc - [IR] Remove deprecated PointerType::getWithSamePointeeType()
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 5 15:12:12 PST 2023
Author: Arthur Eubanks
Date: 2023-12-05T15:12:03-08:00
New Revision: 9fbcdfc7c6f547064a8fed7618aa6ba00153048d
URL: https://github.com/llvm/llvm-project/commit/9fbcdfc7c6f547064a8fed7618aa6ba00153048d
DIFF: https://github.com/llvm/llvm-project/commit/9fbcdfc7c6f547064a8fed7618aa6ba00153048d.diff
LOG: [IR] Remove deprecated PointerType::getWithSamePointeeType()
As the deprecation message says, use PointerType::get(LLVMContext &, unsigned) instead.
Added:
Modified:
llvm/include/llvm/IR/DerivedTypes.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/DerivedTypes.h b/llvm/include/llvm/IR/DerivedTypes.h
index 36ca157a1a3d1..443fb7de3b821 100644
--- a/llvm/include/llvm/IR/DerivedTypes.h
+++ b/llvm/include/llvm/IR/DerivedTypes.h
@@ -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);
More information about the llvm-commits
mailing list