summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitec9bc28812e6b845e585a780116a9a81ee8fc208 (patch)
tree205714e9a8764d1a4bf833320b282d22624d66a9 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parentd2c179c8f6a8569d6307532e2aac0ac4a5e4e71a (diff)
downloadbcm5719-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.cpp10
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());
}
OpenPOWER on IntegriCloud