[llvm] a0124f4 - Remove deprecated member functions (NFC)
Momchil Velikov via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 14 10:07:18 PDT 2021
Author: Momchil Velikov
Date: 2021-04-14T18:06:53+01:00
New Revision: a0124f4e4ded2694172aa1027cc1ea42e3ea3ac8
URL: https://github.com/llvm/llvm-project/commit/a0124f4e4ded2694172aa1027cc1ea42e3ea3ac8
DIFF: https://github.com/llvm/llvm-project/commit/a0124f4e4ded2694172aa1027cc1ea42e3ea3ac8.diff
LOG: Remove deprecated member functions (NFC)
Remove the member functions getByValAlign and getOrigAlign, there were
no users left.
Differential Revision: https://reviews.llvm.org/D99098
Added:
Modified:
llvm/include/llvm/CodeGen/TargetCallingConv.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/TargetCallingConv.h b/llvm/include/llvm/CodeGen/TargetCallingConv.h
index 9ce1e24449bf..3084f2ab210b 100644
--- a/llvm/include/llvm/CodeGen/TargetCallingConv.h
+++ b/llvm/include/llvm/CodeGen/TargetCallingConv.h
@@ -141,11 +141,6 @@ namespace ISD {
bool isPointer() const { return IsPointer; }
void setPointer() { IsPointer = 1; }
- LLVM_ATTRIBUTE_DEPRECATED(unsigned getByValAlign() const,
- "Use getNonZeroByValAlign() instead") {
- MaybeAlign A = decodeMaybeAlign(ByValOrByRefAlign);
- return A ? A->value() : 0;
- }
Align getNonZeroByValAlign() const {
MaybeAlign A = decodeMaybeAlign(ByValOrByRefAlign);
assert(A && "ByValAlign must be defined");
@@ -161,11 +156,6 @@ namespace ISD {
setAlignImpl(A);
}
- LLVM_ATTRIBUTE_DEPRECATED(unsigned getOrigAlign() const,
- "Use getNonZeroOrigAlign() instead") {
- MaybeAlign A = decodeMaybeAlign(OrigAlign);
- return A ? A->value() : 0;
- }
Align getNonZeroOrigAlign() const {
return decodeMaybeAlign(OrigAlign).valueOrOne();
}
More information about the llvm-commits
mailing list