Fix print of BB name in dump().

llvm-svn: 2861
This commit is contained in:
Vikram S. Adve 2002-07-10 21:45:30 +00:00
parent f089faa7f6
commit 6a36c8f2b9
1 changed files with 1 additions and 2 deletions

View File

@ -278,8 +278,7 @@ MachineCodeForMethod::dump() const
for (Function::const_iterator BB = method->begin(); BB != method->end(); ++BB)
{
std::cerr << "\n" << BB->getName() << " (" << (const void*) BB << ")" << ":\n";
std::cerr << endl << (*BB).getName() << " (" << (const void*) BB << ")" << ":" << endl;
MachineCodeForBasicBlock& mvec = MachineCodeForBasicBlock::get(BB);
for (unsigned i=0; i < mvec.size(); i++)
std::cerr << "\t" << *mvec[i];