- Notifications
You must be signed in to change notification settings - Fork 15.3k
Open
Labels
Description
These two methods should be removed now that the opaque pointers migration is complete:
llvm-project/llvm/include/llvm/IR/DerivedTypes.h
Lines 677 to 679 in 6f0a627
| /// This constructs a pointer to an object of the specified type in a numbered | |
| /// address space. | |
| static PointerType *get(Type *ElementType, unsigned AddressSpace); |
llvm-project/llvm/include/llvm/IR/DerivedTypes.h
Lines 684 to 688 in 6f0a627
| /// This constructs a pointer to an object of the specified type in the | |
| /// default address space (address space zero). | |
| static PointerType *getUnqual(Type *ElementType) { | |
| return PointerType::get(ElementType, 0); | |
| } |
Steps:
- Remove all the callers, by switching to the methods accepting LLVMContext (or other more appropriate helpers) instead.
- Deprecate the methods.
- Remove the methods.
cc @JOE1994 as you handled the migration away from Type::getPointerTo().