mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-13 08:56:04 +00:00
[Alignment][NFC] Align(1) to Align::None() conversions
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: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D67715 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372234 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2e1df5f759
commit
abcb2968ab
@ -629,7 +629,7 @@ void MIPrinter::print(const MachineBasicBlock &MBB) {
|
|||||||
OS << "landing-pad";
|
OS << "landing-pad";
|
||||||
HasAttributes = true;
|
HasAttributes = true;
|
||||||
}
|
}
|
||||||
if (MBB.getAlignment() > 1) {
|
if (MBB.getAlignment() != llvm::Align::None()) {
|
||||||
OS << (HasAttributes ? ", " : " (");
|
OS << (HasAttributes ? ", " : " (");
|
||||||
OS << "align " << MBB.getAlignment().value();
|
OS << "align " << MBB.getAlignment().value();
|
||||||
HasAttributes = true;
|
HasAttributes = true;
|
||||||
|
@ -326,7 +326,7 @@ void MachineBasicBlock::print(raw_ostream &OS, ModuleSlotTracker &MST,
|
|||||||
OS << "landing-pad";
|
OS << "landing-pad";
|
||||||
HasAttributes = true;
|
HasAttributes = true;
|
||||||
}
|
}
|
||||||
if (getAlignment() > 1) {
|
if (getAlignment() != llvm::Align::None()) {
|
||||||
OS << (HasAttributes ? ", " : " (");
|
OS << (HasAttributes ? ", " : " (");
|
||||||
OS << "align " << Log2(getAlignment());
|
OS << "align " << Log2(getAlignment());
|
||||||
HasAttributes = true;
|
HasAttributes = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user