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:
Alexey Samsonov
2014-04-30 18:29:51 +00:00
parent 78ecea93a3
commit 4aef7270c9
7 changed files with 40 additions and 56 deletions
+2 -2
View File
@@ -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";