diff --git a/llvm/include/llvm/IR/DerivedTypes.h b/llvm/include/llvm/IR/DerivedTypes.h index 60606d34c32c3..ba5c41ff033f5 100644 --- a/llvm/include/llvm/IR/DerivedTypes.h +++ b/llvm/include/llvm/IR/DerivedTypes.h @@ -685,6 +685,8 @@ class PointerType : public Type { /// This constructs a pointer to an object of the specified type in a numbered /// address space. + [[deprecated("PointerType::get with pointee type is pending removal. Use " + "Context overload.")]] static PointerType *get(Type *ElementType, unsigned AddressSpace); /// This constructs an opaque pointer to an object in a numbered address /// space. @@ -692,6 +694,8 @@ class PointerType : public Type { /// This constructs a pointer to an object of the specified type in the /// default address space (address space zero). + [[deprecated("PointerType::getUnqual with pointee type is pending removal. " + "Use Context overload.")]] static PointerType *getUnqual(Type *ElementType) { return PointerType::get(ElementType, 0); }