Implement printing of MBB arguments

llvm-svn: 5053
This commit is contained in:
Chris Lattner
2002-12-15 20:35:25 +00:00
parent e2533336f5
commit f895418b47
2 changed files with 29 additions and 19 deletions

View File

@@ -112,8 +112,7 @@ void MachineFunction::print(std::ostream &OS) const {
for (const_iterator BB = begin(); BB != end(); ++BB) {
BasicBlock *LBB = BB->getBasicBlock();
OS << "\n" << LBB->getName() << " ("
<< (const void*)BB->getBasicBlock() << "):\n";
OS << "\n" << LBB->getName() << " (" << (const void*)LBB << "):\n";
for (MachineBasicBlock::const_iterator I = BB->begin(); I != BB->end();++I){
OS << "\t";
(*I)->print(OS, Target);