mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
Convert several loops over MachineFunction basic blocks to range-based loops
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207683 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -365,9 +365,9 @@ void MachineFunction::print(raw_ostream &OS, SlotIndexes *Indexes) const {
|
||||
OS << '\n';
|
||||
}
|
||||
|
||||
for (const_iterator BB = begin(), E = end(); BB != E; ++BB) {
|
||||
for (const auto &BB : *this) {
|
||||
OS << '\n';
|
||||
BB->print(OS, Indexes);
|
||||
BB.print(OS, Indexes);
|
||||
}
|
||||
|
||||
OS << "\n# End machine code for function " << getName() << ".\n\n";
|
||||
|
||||
Reference in New Issue
Block a user