1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[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 bb53127667
commit 74804cc814

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();
}