Tweak debug output from SlotIndexes.

llvm-svn: 124814
This commit is contained in:
Jakob Stoklund Olesen 2011-02-03 20:29:41 +00:00
parent d8f62e2a62
commit db4cf7e4a4
1 changed files with 5 additions and 1 deletions

View File

@ -158,6 +158,7 @@ void SlotIndexes::renumberIndexes() {
// resulting numbering will match what would have been generated by the
// pass during the initial numbering of the function if the new instructions
// had been present.
DEBUG(dbgs() << "\n*** Renumbering SlotIndexes ***\n");
functionSize = 0;
unsigned index = 0;
@ -203,7 +204,10 @@ void SlotIndexes::dump() const {
// Print a SlotIndex to a raw_ostream.
void SlotIndex::print(raw_ostream &os) const {
os << entry().getIndex() << "LudS"[getSlot()];
if (isValid())
os << entry().getIndex() << "LudS"[getSlot()];
else
os << "invalid";
}
// Dump a SlotIndex to stderr.