[llvm] 8606cbf - [IR] Remove Type::getPointerElementType() (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 19 00:52:14 PDT 2023
Author: Nikita Popov
Date: 2023-07-19T09:52:07+02:00
New Revision: 8606cbf97f091b82a4911b314234fa9907e45ba0
URL: https://github.com/llvm/llvm-project/commit/8606cbf97f091b82a4911b314234fa9907e45ba0
DIFF: https://github.com/llvm/llvm-project/commit/8606cbf97f091b82a4911b314234fa9907e45ba0.diff
LOG: [IR] Remove Type::getPointerElementType() (NFC)
This method has been deprecated since the LLVM 15 release and
can no longer meaningfully be used, so remove it.
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 57d1773becb9c1..12aaf6cab458b2 100644
--- a/llvm/include/llvm/IR/Type.h
+++ b/llvm/include/llvm/IR/Type.h
@@ -408,15 +408,6 @@ class Type {
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.
More information about the llvm-commits
mailing list