diff options
author | Alexey Samsonov <samsonov@google.com> | 2014-04-30 18:29:51 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2014-04-30 18:29:51 +0000 |
commit | 4aef7270c975ed62788ce5956a1763101113bc6f (patch) | |
tree | b5b6df3dc98780fc2a13354ac567cac966a0f657 /lib/CodeGen/MachineFunction.cpp | |
parent | 78ecea93a30e5fe05277f11b07a2d32a7c68e31d (diff) | |
download | llvm-4aef7270c975ed62788ce5956a1763101113bc6f.tar.gz llvm-4aef7270c975ed62788ce5956a1763101113bc6f.tar.bz2 llvm-4aef7270c975ed62788ce5956a1763101113bc6f.tar.xz |
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
Diffstat (limited to 'lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | lib/CodeGen/MachineFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp index f0ced33cdc..eb3d71fef5 100644 --- a/lib/CodeGen/MachineFunction.cpp +++ b/lib/CodeGen/MachineFunction.cpp @@ -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"; |