aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2009-08-03 21:55:09 +0000
committerDavid Greene <greened@obbligato.org>2009-08-03 21:55:09 +0000
commitb5257664795d49ada0d4669fe8ed1cd49c04fbf3 (patch)
treefd2c7e1b494e4829cff1bb3dfac8e2552d795fe1 /lib/CodeGen/MachineBasicBlock.cpp
parent11e9657eeb76dff6baaab1cbac0b1fb7e1abb439 (diff)
Re-apply LiveInterval index dumping patch, with fixes suggested by Bill
and others. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78003 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--lib/CodeGen/MachineBasicBlock.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp
index 80ca8727f7..b30a3fcf30 100644
--- a/lib/CodeGen/MachineBasicBlock.cpp
+++ b/lib/CodeGen/MachineBasicBlock.cpp
@@ -153,12 +153,14 @@ static inline void OutputReg(raw_ostream &os, unsigned RegNo,
os << " %reg" << RegNo;
}
-void MachineBasicBlock::print(std::ostream &OS) const {
+void MachineBasicBlock::print(std::ostream &OS,
+ const PrefixPrinter &prefix) const {
raw_os_ostream RawOS(OS);
- print(RawOS);
+ print(RawOS, prefix);
}
-void MachineBasicBlock::print(raw_ostream &OS) const {
+void MachineBasicBlock::print(raw_ostream &OS,
+ const PrefixPrinter &prefix) const {
const MachineFunction *MF = getParent();
if(!MF) {
OS << "Can't print out MachineBasicBlock because parent MachineFunction"
@@ -191,7 +193,7 @@ void MachineBasicBlock::print(raw_ostream &OS) const {
}
for (const_iterator I = begin(); I != end(); ++I) {
- OS << "\t";
+ prefix(OS, *I) << "\t";
I->print(OS, &getParent()->getTarget());
}