diff options
author | David Greene <greened@obbligato.org> | 2009-08-03 21:55:09 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2009-08-03 21:55:09 +0000 |
commit | ec9bc28812e6b845e585a780116a9a81ee8fc208 (patch) | |
tree | 205714e9a8764d1a4bf833320b282d22624d66a9 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | d2c179c8f6a8569d6307532e2aac0ac4a5e4e71a (diff) | |
download | bcm5719-llvm-ec9bc28812e6b845e585a780116a9a81ee8fc208.tar.gz bcm5719-llvm-ec9bc28812e6b845e585a780116a9a81ee8fc208.zip |
Re-apply LiveInterval index dumping patch, with fixes suggested by Bill
and others.
llvm-svn: 78003
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index 80ca8727f72..b30a3fcf300 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/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()); } |