mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
Add MachineBasicBlock::getName, and use it in place of getBasicBlock()->getName.
Fix debug code that assumes getBasicBlock never returns NULL. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89428 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -305,7 +305,7 @@ void MachineVerifier::report(const char *msg, const MachineFunction *MF) {
|
||||
void MachineVerifier::report(const char *msg, const MachineBasicBlock *MBB) {
|
||||
assert(MBB);
|
||||
report(msg, MBB->getParent());
|
||||
*OS << "- basic block: " << MBB->getBasicBlock()->getNameStr()
|
||||
*OS << "- basic block: " << MBB->getName()
|
||||
<< " " << (void*)MBB
|
||||
<< " (BB#" << MBB->getNumber() << ")\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user