[llvm-commits] [llvm] r145965 - /llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Tue Dec 6 13:08:39 PST 2011
Author: stoklund
Date: Tue Dec 6 15:08:39 2011
New Revision: 145965
URL: http://llvm.org/viewvc/llvm-project?rev=145965&view=rev
Log:
Pretty-print basic block alignment.
Modified:
llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp
Modified: llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp?rev=145965&r1=145964&r2=145965&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp Tue Dec 6 15:08:39 2011
@@ -203,8 +203,6 @@
return;
}
- if (Alignment) { OS << "Alignment " << Alignment << "\n"; }
-
if (Indexes)
OS << Indexes->getMBBStartIdx(this) << '\t';
@@ -218,6 +216,12 @@
}
if (isLandingPad()) { OS << Comma << "EH LANDING PAD"; Comma = ", "; }
if (hasAddressTaken()) { OS << Comma << "ADDRESS TAKEN"; Comma = ", "; }
+ if (Alignment) {
+ OS << Comma << "Align " << Alignment << " (" << (1u << Alignment)
+ << " bytes)";
+ Comma = ", ";
+ }
+
OS << '\n';
const TargetRegisterInfo *TRI = MF->getTarget().getRegisterInfo();
More information about the llvm-commits
mailing list