mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 22:50:47 +00:00
Tweak debug output from SlotIndexes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124814 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c50f077b06
commit
97af98678c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user