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
commit324da7647cfc3025e0c987176f0a300f9f780e6f (patch)
tree56374dc2107fe1ce80ef47b98fbfb3b879a1f33c /lib/CodeGen/MachineLICM.cpp
parentac146657fc2dc63e9856e0090fd0bec4ba9befd3 (diff)
downloadexternal_llvm-324da7647cfc3025e0c987176f0a300f9f780e6f.tar.gz
external_llvm-324da7647cfc3025e0c987176f0a300f9f780e6f.tar.bz2
external_llvm-324da7647cfc3025e0c987176f0a300f9f780e6f.zip
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 33b6b82344..694282b226 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";
});