[llvm] e4104c0 - [DataLayout] Remove deprecated method (#101495)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 7 15:19:10 PDT 2024
Author: Sergei Barannikov
Date: 2024-08-08T01:19:07+03:00
New Revision: e4104c0eeaaeb739298e865e007b9428d5fcb6c2
URL: https://github.com/llvm/llvm-project/commit/e4104c0eeaaeb739298e865e007b9428d5fcb6c2
DIFF: https://github.com/llvm/llvm-project/commit/e4104c0eeaaeb739298e865e007b9428d5fcb6c2.diff
LOG: [DataLayout] Remove deprecated method (#101495)
The method has been deprecated for a year and a half now.
Added:
Modified:
llvm/include/llvm/IR/DataLayout.h
llvm/lib/IR/DataLayout.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/DataLayout.h b/llvm/include/llvm/IR/DataLayout.h
index 5f7034b5ee36f..afcb8bcb77f10 100644
--- a/llvm/include/llvm/IR/DataLayout.h
+++ b/llvm/include/llvm/IR/DataLayout.h
@@ -534,14 +534,6 @@ class DataLayout {
return getIntegerAlignment(BitWidth, /* abi_or_pref */ true);
}
- /// Returns the preferred stack/global alignment for the specified
- /// type.
- ///
- /// This is always at least as good as the ABI alignment.
- /// FIXME: Deprecate this function once migration to Align is over.
- LLVM_DEPRECATED("use getPrefTypeAlign instead", "getPrefTypeAlign")
- uint64_t getPrefTypeAlignment(Type *Ty) const;
-
/// Returns the preferred stack/global alignment for the specified
/// type.
///
diff --git a/llvm/lib/IR/DataLayout.cpp b/llvm/lib/IR/DataLayout.cpp
index 17897f77b4edb..5104cb86320be 100644
--- a/llvm/lib/IR/DataLayout.cpp
+++ b/llvm/lib/IR/DataLayout.cpp
@@ -865,11 +865,6 @@ Align DataLayout::getABITypeAlign(Type *Ty) const {
return getAlignment(Ty, true);
}
-/// TODO: Remove this function once the transition to Align is over.
-uint64_t DataLayout::getPrefTypeAlignment(Type *Ty) const {
- return getPrefTypeAlign(Ty).value();
-}
-
Align DataLayout::getPrefTypeAlign(Type *Ty) const {
return getAlignment(Ty, false);
}
More information about the llvm-commits
mailing list