Skip to content

Remove PointerType::get/getUnqual with element type argument #123569

Open
@nikic

Description

@nikic

These two methods should be removed now that the opaque pointers migration is complete:

/// This constructs a pointer to an object of the specified type in a numbered
/// address space.
static PointerType *get(Type *ElementType, unsigned AddressSpace);

/// 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().

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions