aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/MachineFunction.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
commit180b5e789d07f611994743f4e936b44a7947c7fb (patch)
treefd2c7e1b494e4829cff1bb3dfac8e2552d795fe1 /lib/CodeGen/MachineFunction.cpp
parent92873462f7745daa9cc72844bc21af915c3c4027 (diff)
downloadexternal_llvm-180b5e789d07f611994743f4e936b44a7947c7fb.tar.gz
external_llvm-180b5e789d07f611994743f4e936b44a7947c7fb.tar.bz2
external_llvm-180b5e789d07f611994743f4e936b44a7947c7fb.zip
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/MachineFunction.cpp')
-rw-r--r--lib/CodeGen/MachineFunction.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp
index 858f40362b..2e9303aeef 100644
--- a/lib/CodeGen/MachineFunction.cpp
+++ b/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";
}