Pretty-print basic block alignment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145965 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jakob Stoklund Olesen 2011-12-06 21:08:39 +00:00
parent 93e9d3abe5
commit f2e944523c

View File

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