[PATCH] D152264: [IR] Deprecate Type::getPointerTo() (NFC)
Youngsuk Kim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 6 06:33:22 PDT 2023
JOE1994 created this revision.
JOE1994 added a reviewer: nikic.
Herald added a subscriber: StephenFan.
Herald added a project: All.
JOE1994 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
According to discussion from D152173 <https://reviews.llvm.org/D152173>, the current plan is to eventually
get rid of `Type::getPointerTo`.
Deprecate `Type::getPointerTo` to discourage use of the API.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D152264
Files:
llvm/include/llvm/IR/Type.h
Index: llvm/include/llvm/IR/Type.h
===================================================================
--- llvm/include/llvm/IR/Type.h
+++ llvm/include/llvm/IR/Type.h
@@ -515,6 +515,7 @@
/// Return a pointer to the current type. This is equivalent to
/// PointerType::get(Foo, AddrSpace).
/// TODO: Remove this after opaque pointer transition is complete.
+ [[deprecated("Use 'PointerType::get(Ty, AddrSpace)' instead")]]
PointerType *getPointerTo(unsigned AddrSpace = 0) const;
private:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152264.528828.patch
Type: text/x-patch
Size: 504 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230606/c3aaffee/attachment.bin>
More information about the llvm-commits
mailing list