[IR] Remove Type::getPointerElementType() (NFC)
authorNikita Popov <npopov@redhat.com>
Wed, 19 Jul 2023 07:40:48 +0000 (09:40 +0200)
committerNikita Popov <npopov@redhat.com>
Wed, 19 Jul 2023 07:52:07 +0000 (09:52 +0200)
This method has been deprecated since the LLVM 15 release and
can no longer meaningfully be used, so remove it.

llvm/include/llvm/IR/Type.h

index 57d1773..12aaf6c 100644 (file)
@@ -408,15 +408,6 @@ public:
 
   inline StringRef getTargetExtName() const;
 
-  /// 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();
-  }
-
   /// Only use this method in code that is not reachable with opaque pointers,
   /// or part of deprecated methods that will be removed as part of the opaque
   /// pointers transition.