mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
Eliminate unneccesary use of MachineBasicBlock::get
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4339 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
335d5c399b
commit
b84a2ba877
@ -312,13 +312,11 @@ MachineFunction::dump() const
|
||||
std::cerr << "\n" << Fn->getReturnType()
|
||||
<< " \"" << Fn->getName() << "\"\n";
|
||||
|
||||
for (Function::const_iterator BB = Fn->begin(); BB != Fn->end(); ++BB)
|
||||
{
|
||||
std::cerr << "\n" << BB->getName() << " (" << (const void*)BB
|
||||
<< ")" << ":" << "\n";
|
||||
MachineBasicBlock& mvec = MachineBasicBlock::get(BB);
|
||||
for (unsigned i=0; i < mvec.size(); i++)
|
||||
std::cerr << "\t" << *mvec[i];
|
||||
}
|
||||
for (const_iterator BB = begin(); BB != end(); ++BB) {
|
||||
std::cerr << "\n" << BB->getBasicBlock()->getName() << " ("
|
||||
<< (const void*)BB->getBasicBlock() << ")" << ":" << "\n";
|
||||
for (MachineBasicBlock::const_iterator I = BB->begin(); I != BB->end(); ++I)
|
||||
std::cerr << "\t" << *I;
|
||||
}
|
||||
std::cerr << "\nEnd function \"" << Fn->getName() << "\"\n\n";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user