[llvm-commits] CVS: llvm/lib/CodeGen/MachineFunction.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Mon Mar 29 15:59:01 PST 2004
Changes in directory llvm/lib/CodeGen:
MachineFunction.cpp updated: 1.54 -> 1.55
---
Log message:
Change how the beginnings and ends of MachineFunctions are printed. Get
rid of the funny cast.
---
Diffs of the changes: (+3 -3)
Index: llvm/lib/CodeGen/MachineFunction.cpp
diff -u llvm/lib/CodeGen/MachineFunction.cpp:1.54 llvm/lib/CodeGen/MachineFunction.cpp:1.55
--- llvm/lib/CodeGen/MachineFunction.cpp:1.54 Mon Mar 1 00:43:28 2004
+++ llvm/lib/CodeGen/MachineFunction.cpp Mon Mar 29 15:58:31 2004
@@ -104,8 +104,7 @@
void MachineFunction::dump() const { print(std::cerr); }
void MachineFunction::print(std::ostream &OS) const {
- OS << "\n" << *(Value*)Fn->getFunctionType() << " \"" << Fn->getName()
- << "\"\n";
+ OS << "# Machine code for " << Fn->getName () << "():\n";
// Print Frame Information
getFrameInfo()->print(*this, OS);
@@ -115,7 +114,8 @@
for (const_iterator BB = begin(); BB != end(); ++BB)
BB->print(OS);
- OS << "\nEnd function \"" << Fn->getName() << "\"\n\n";
+
+ OS << "\n# End machine code for " << Fn->getName () << "().\n\n";
}
// The next two methods are used to construct and to retrieve
More information about the llvm-commits
mailing list