diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-23 00:47:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-23 00:47:04 +0000 |
commit | 2d8e3d20be377112999670f210200b3658762571 (patch) | |
tree | 3d5bc32c0b4ca5bdcad5b0f298dd59f738c278e5 /lib/CodeGen/MachineFunction.cpp | |
parent | 77942d4ee47e76626d574b027e4b9c5c90e2bbf4 (diff) | |
download | external_llvm-2d8e3d20be377112999670f210200b3658762571.zip external_llvm-2d8e3d20be377112999670f210200b3658762571.tar.gz external_llvm-2d8e3d20be377112999670f210200b3658762571.tar.bz2 |
remove dead PrefixPrinter class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | lib/CodeGen/MachineFunction.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp index 340f12f..93a8fee 100644 --- a/lib/CodeGen/MachineFunction.cpp +++ b/lib/CodeGen/MachineFunction.cpp @@ -220,9 +220,8 @@ void MachineFunction::dump() const { print(*cerr.stream()); } -void MachineFunction::print(std::ostream &OS, - const PrefixPrinter &prefix) const { - OS << "# Machine code for " << Fn->getNameStr () << "():\n"; +void MachineFunction::print(std::ostream &OS) const { + OS << "# Machine code for " << Fn->getNameStr() << "():\n"; // Print Frame Information FrameInfo->print(*this, OS); @@ -263,12 +262,10 @@ void MachineFunction::print(std::ostream &OS, OS << "\n"; } - for (const_iterator BB = begin(); BB != end(); ++BB) { - prefix(OS, *BB); - BB->print(OS, prefix); - } + for (const_iterator BB = begin(), E = end(); BB != E; ++BB) + BB->print(OS); - OS << "\n# End machine code for " << Fn->getNameStr () << "().\n\n"; + OS << "\n# End machine code for " << Fn->getNameStr() << "().\n\n"; } namespace llvm { |