1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Change how the beginnings and ends of MachineFunctions are printed. Get

rid of the funny cast.

llvm-svn: 12537
This commit is contained in:
Brian Gaeke 2004-03-29 21:58:31 +00:00
parent dd7ed2912e
commit 27be9eb265

View 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