Skip to content

Commit e4104c0

Browse files
authored
[DataLayout] Remove deprecated method (#101495)
The method has been deprecated for a year and a half now.
1 parent 34157f6 commit e4104c0

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

llvm/include/llvm/IR/DataLayout.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -534,14 +534,6 @@ class DataLayout {
534534
return getIntegerAlignment(BitWidth, /* abi_or_pref */ true);
535535
}
536536

537-
/// Returns the preferred stack/global alignment for the specified
538-
/// type.
539-
///
540-
/// This is always at least as good as the ABI alignment.
541-
/// FIXME: Deprecate this function once migration to Align is over.
542-
LLVM_DEPRECATED("use getPrefTypeAlign instead", "getPrefTypeAlign")
543-
uint64_t getPrefTypeAlignment(Type *Ty) const;
544-
545537
/// Returns the preferred stack/global alignment for the specified
546538
/// type.
547539
///

llvm/lib/IR/DataLayout.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -865,11 +865,6 @@ Align DataLayout::getABITypeAlign(Type *Ty) const {
865865
return getAlignment(Ty, true);
866866
}
867867

868-
/// TODO: Remove this function once the transition to Align is over.
869-
uint64_t DataLayout::getPrefTypeAlignment(Type *Ty) const {
870-
return getPrefTypeAlign(Ty).value();
871-
}
872-
873868
Align DataLayout::getPrefTypeAlign(Type *Ty) const {
874869
return getAlignment(Ty, false);
875870
}

0 commit comments

Comments
 (0)