Fix print of BB name in dump().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2861 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vikram S. Adve 2002-07-10 21:45:30 +00:00
parent 3bc9ef9317
commit cd13e7a5ee

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];