diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-28 06:01:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-28 06:01:57 +0000 |
commit | 7421df92cb31e971ed097fc0b8d1191b4a251082 (patch) | |
tree | 964ba6004ac60e5a4575b2eb2520671742397570 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | ba3a8060ffcb54949ad047be01729f79f7171fee (diff) | |
download | bcm5719-llvm-7421df92cb31e971ed097fc0b8d1191b4a251082.tar.gz bcm5719-llvm-7421df92cb31e971ed097fc0b8d1191b4a251082.zip |
Eliminate unneccesary use of MachineBasicBlock::get
llvm-svn: 4339
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index c06c008bade..9fb7bbb68e5 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -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"; } |