Change how the beginnings and ends of MachineFunctions are printed. Get
authorBrian Gaeke <gaeke@uiuc.edu>
Mon, 29 Mar 2004 21:58:31 +0000 (21:58 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Mon, 29 Mar 2004 21:58:31 +0000 (21:58 +0000)
rid of the funny cast.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12537 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineFunction.cpp

index 3f038945726d51a16f615155a953b9190cccad8c..be3f274561f31ee7f82eb0b7459de49ea96231e9 100644 (file)
@@ -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