[llvm] c99424f - [IR] Deprecate Type::getPointerElementType() (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 20 02:58:45 PDT 2022


Author: Nikita Popov
Date: 2022-04-20T11:55:40+02:00
New Revision: c99424f76560f289d04499953a6552d42a648a52

URL: https://github.com/llvm/llvm-project/commit/c99424f76560f289d04499953a6552d42a648a52
DIFF: https://github.com/llvm/llvm-project/commit/c99424f76560f289d04499953a6552d42a648a52.diff

LOG: [IR] Deprecate Type::getPointerElementType() (NFC)

There are no more in-tree users of this method, outside the
experimental SPIRV backend.

Added: 
    

Modified: 
    llvm/include/llvm/IR/Type.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/Type.h b/llvm/include/llvm/IR/Type.h
index e4e8a5529c87b..f998eeb7dc7c2 100644
--- a/llvm/include/llvm/IR/Type.h
+++ b/llvm/include/llvm/IR/Type.h
@@ -368,6 +368,9 @@ class Type {
 
   /// 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();
   }


        


More information about the llvm-commits mailing list