From c99424f76560f289d04499953a6552d42a648a52 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 20 Apr 2022 11:55:40 +0200 Subject: [PATCH] [IR] Deprecate Type::getPointerElementType() (NFC) There are no more in-tree users of this method, outside the experimental SPIRV backend. --- llvm/include/llvm/IR/Type.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/include/llvm/IR/Type.h b/llvm/include/llvm/IR/Type.h index e4e8a55..f998eeb 100644 --- a/llvm/include/llvm/IR/Type.h +++ b/llvm/include/llvm/IR/Type.h @@ -368,6 +368,9 @@ public: /// This method is deprecated without replacement. Pointer element types are /// not available with opaque pointers. + [[deprecated("Deprecated without replacement, see " + "https://llvm.org/docs/OpaquePointers.html for context and " + "migration instructions")]] Type *getPointerElementType() const { return getNonOpaquePointerElementType(); } -- 2.7.4