summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-12-06 21:08:39 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-12-06 21:08:39 +0000
commit2a2b37ea4ab06f481881ac818d60fc39d5728791 (patch)
tree1191204f25b95c15a66d5aa0be57521e971e2228 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parentcf9af0fc3bae903d24417ce10d37d4870bdf558f (diff)
downloadbcm5719-llvm-2a2b37ea4ab06f481881ac818d60fc39d5728791.tar.gz
bcm5719-llvm-2a2b37ea4ab06f481881ac818d60fc39d5728791.zip
Pretty-print basic block alignment.
llvm-svn: 145965
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBasicBlock.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp
index b9d1ef7c68c..75fdb7e212d 100644
--- a/llvm/lib/CodeGen/MachineBasicBlock.cpp
+++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp
@@ -203,8 +203,6 @@ void MachineBasicBlock::print(raw_ostream &OS, SlotIndexes *Indexes) const {
return;
}
- if (Alignment) { OS << "Alignment " << Alignment << "\n"; }
-
if (Indexes)
OS << Indexes->getMBBStartIdx(this) << '\t';
@@ -218,6 +216,12 @@ void MachineBasicBlock::print(raw_ostream &OS, SlotIndexes *Indexes) const {
}
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();
OpenPOWER on IntegriCloud