mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-06 09:44:39 +00:00
Make debugging dumps w/ multiple MachineBBs for a given LLVM BB readable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14205 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ccd9796a46
commit
988b7ba5ba
@ -101,7 +101,8 @@ void MachineBasicBlock::print(std::ostream &OS) const
|
||||
}
|
||||
const BasicBlock *LBB = getBasicBlock();
|
||||
if(LBB)
|
||||
OS << "\n" << LBB->getName() << " (" << (const void*)LBB << "):\n";
|
||||
OS << "\n" << LBB->getName() << " (" << (const void*)this
|
||||
<< ", LLVM BB @" << (const void*) LBB << "):\n";
|
||||
for (const_iterator I = begin(); I != end(); ++I) {
|
||||
OS << "\t";
|
||||
I->print(OS, getParent()->getTarget());
|
||||
|
@ -289,9 +289,9 @@ static void print(const MachineOperand &MO, std::ostream &OS,
|
||||
break;
|
||||
}
|
||||
case MachineOperand::MO_MachineBasicBlock:
|
||||
OS << "bb<"
|
||||
OS << "mbb<"
|
||||
<< ((Value*)MO.getMachineBasicBlock()->getBasicBlock())->getName()
|
||||
<< "," << (void*)MO.getMachineBasicBlock()->getBasicBlock() << ">";
|
||||
<< "," << (void*)MO.getMachineBasicBlock() << ">";
|
||||
break;
|
||||
case MachineOperand::MO_FrameIndex:
|
||||
OS << "<fi#" << MO.getFrameIndex() << ">";
|
||||
@ -448,9 +448,9 @@ std::ostream &operator<<(std::ostream &OS, const MachineOperand &MO) {
|
||||
break;
|
||||
}
|
||||
case MachineOperand::MO_MachineBasicBlock:
|
||||
OS << "bb<"
|
||||
OS << "<mbb:"
|
||||
<< ((Value*)MO.getMachineBasicBlock()->getBasicBlock())->getName()
|
||||
<< "," << (void*)MO.getMachineBasicBlock()->getBasicBlock() << ">";
|
||||
<< "@" << (void*)MO.getMachineBasicBlock() << ">";
|
||||
break;
|
||||
case MachineOperand::MO_FrameIndex:
|
||||
OS << "<fi#" << MO.getFrameIndex() << ">";
|
||||
|
Loading…
x
Reference in New Issue
Block a user