Skip to content

Commit b3c03d6

Browse files
committed
Use [[deprecated]] attribute instead
1 parent 58d92f5 commit b3c03d6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

llvm/include/llvm/IR/DerivedTypes.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -685,19 +685,17 @@ class PointerType : public Type {
685685

686686
/// This constructs a pointer to an object of the specified type in a numbered
687687
/// address space.
688-
LLVM_DEPRECATED("PointerType::get with pointee type is pending removal. Use "
689-
"Context overload.",
690-
"PointerType::get(LLVMContext, AS)")
688+
[[deprecated("PointerType::get with pointee type is pending removal. Use "
689+
"Context overload.")]]
691690
static PointerType *get(Type *ElementType, unsigned AddressSpace);
692691
/// This constructs an opaque pointer to an object in a numbered address
693692
/// space.
694693
static PointerType *get(LLVMContext &C, unsigned AddressSpace);
695694

696695
/// This constructs a pointer to an object of the specified type in the
697696
/// default address space (address space zero).
698-
LLVM_DEPRECATED("PointerType::getUnqual with pointee type is pending "
699-
"removal. Use Context overload.",
700-
"PointerType::getUnqual(LLVMCOntext)")
697+
[[deprecated("PointerType::getUnqual with pointee type is pending removal. "
698+
"Use Context overload.")]]
701699
static PointerType *getUnqual(Type *ElementType) {
702700
return PointerType::get(ElementType, 0);
703701
}

0 commit comments

Comments
 (0)