summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-03-29 21:58:31 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-03-29 21:58:31 +0000
commit2fe0ac9ade4bbaf8e2952a45eba05f84e3474842 (patch)
tree3b72a473a5f4872f08cbd019d69db0dc92bf7db5 /llvm/lib/CodeGen/MachineFunction.cpp
parent5152b9ed34854c9c115dbaf15a4e901ce5e5b638 (diff)
downloadbcm5719-llvm-2fe0ac9ade4bbaf8e2952a45eba05f84e3474842.tar.gz
bcm5719-llvm-2fe0ac9ade4bbaf8e2952a45eba05f84e3474842.zip
Change how the beginnings and ends of MachineFunctions are printed. Get
rid of the funny cast. llvm-svn: 12537
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 3f038945726..be3f274561f 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -104,8 +104,7 @@ MachineFunction::~MachineFunction() {
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 @@ void MachineFunction::print(std::ostream &OS) const {
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
OpenPOWER on IntegriCloud