summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineVerifier.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2009-11-20 01:17:03 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2009-11-20 01:17:03 +0000
commit2bbeaa8774cc9a89cb9575e1bca6c654f3b8fb44 (patch)
treed042bc1f749a54d24c3c3eef9ac3fdcbb9ab2264 /llvm/lib/CodeGen/MachineVerifier.cpp
parent62167b95162a6b06e48619b8d4d4c80fb363e5f2 (diff)
downloadbcm5719-llvm-2bbeaa8774cc9a89cb9575e1bca6c654f3b8fb44.tar.gz
bcm5719-llvm-2bbeaa8774cc9a89cb9575e1bca6c654f3b8fb44.zip
Add MachineBasicBlock::getName, and use it in place of getBasicBlock()->getName.
Fix debug code that assumes getBasicBlock never returns NULL. llvm-svn: 89428
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineVerifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index a1c74c0c48a..d9f4c997b90 100644
--- a/llvm/lib/CodeGen/MachineVerifier.cpp
+++ b/llvm/lib/CodeGen/MachineVerifier.cpp
@@ -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";
}
OpenPOWER on IntegriCloud