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/MachineFunction.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/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 858f40362b0..2e9303aeefb 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -218,7 +218,8 @@ void MachineFunction::dump() const { print(*cerr.stream()); } -void MachineFunction::print(std::ostream &OS) const { +void MachineFunction::print(std::ostream &OS, + const PrefixPrinter &prefix) const { OS << "# Machine code for " << Fn->getNameStr () << "():\n"; // Print Frame Information @@ -260,8 +261,10 @@ void MachineFunction::print(std::ostream &OS) const { OS << "\n"; } - for (const_iterator BB = begin(); BB != end(); ++BB) - BB->print(OS); + for (const_iterator BB = begin(); BB != end(); ++BB) { + prefix(OS, *BB); + BB->print(OS, prefix); + } OS << "\n# End machine code for " << Fn->getNameStr () << "().\n\n"; } |