[Alignment][NFC] Mark IRTranslator::getMemOpAlignment deprecated

Summary:
This is patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790

Reviewers: courbet

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D77218
This commit is contained in:
Guillaume Chatelet 2020-04-01 14:33:27 +00:00
parent fc63c4d8ce
commit c6c045cb7a
1 changed files with 3 additions and 2 deletions

View File

@ -582,8 +582,9 @@ private:
/// Get the alignment of the given memory operation instruction. This will
/// either be the explicitly specified value or the ABI-required alignment for
/// the type being accessed (according to the Module's DataLayout).
/// FIXME: Remove once transition to Align is over.
inline unsigned getMemOpAlignment(const Instruction &I) {
LLVM_ATTRIBUTE_DEPRECATED(
inline unsigned getMemOpAlignment(const Instruction &I),
"Use getMemOpAlign instead") {
return getMemOpAlign(I).value();
}