aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/MachineLICM.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
commit222f68489f8cf17fa316ad1028c285326d830214 (patch)
tree56374dc2107fe1ce80ef47b98fbfb3b879a1f33c /lib/CodeGen/MachineLICM.cpp
parentb1b77e7c3e5adb80863c97c4d24aa598c5fc1515 (diff)
downloadexternal_llvm-222f68489f8cf17fa316ad1028c285326d830214.zip
external_llvm-222f68489f8cf17fa316ad1028c285326d830214.tar.gz
external_llvm-222f68489f8cf17fa316ad1028c285326d830214.tar.bz2
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
Diffstat (limited to 'lib/CodeGen/MachineLICM.cpp')
-rw-r--r--lib/CodeGen/MachineLICM.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineLICM.cpp b/lib/CodeGen/MachineLICM.cpp
index 33b6b82..694282b 100644
--- a/lib/CodeGen/MachineLICM.cpp
+++ b/lib/CodeGen/MachineLICM.cpp
@@ -487,10 +487,10 @@ void MachineLICM::Hoist(MachineInstr *MI) {
errs() << "Hoisting " << *MI;
if (CurPreheader->getBasicBlock())
errs() << " to MachineBasicBlock "
- << CurPreheader->getBasicBlock()->getName();
+ << CurPreheader->getName();
if (MI->getParent()->getBasicBlock())
errs() << " from MachineBasicBlock "
- << MI->getParent()->getBasicBlock()->getName();
+ << MI->getParent()->getName();
errs() << "\n";
});