diff options
author | Vasileios Kalintiris <Vasileios.Kalintiris@imgtec.com> | 2016-04-15 20:43:17 +0000 |
---|---|---|
committer | Vasileios Kalintiris <Vasileios.Kalintiris@imgtec.com> | 2016-04-15 20:43:17 +0000 |
commit | 5a971a48c36dca0d14c11c980deb8edeb493be0d (patch) | |
tree | 4f59419a9c317d0e6e37ae299e114e3c37b30a09 /llvm/lib/Target/Mips/MipsAsmPrinter.cpp | |
parent | 36311395aea6fe83a09ca4dbce52d1d7a76cb93c (diff) | |
download | bcm5719-llvm-5a971a48c36dca0d14c11c980deb8edeb493be0d.tar.gz bcm5719-llvm-5a971a48c36dca0d14c11c980deb8edeb493be0d.zip |
[mips] More range-based for loops. NFC.
There are still a couple more inside the MIPS target. I opted for a single
commit in order to avoid spamming the list.
llvm-svn: 266472
Diffstat (limited to 'llvm/lib/Target/Mips/MipsAsmPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MipsAsmPrinter.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Target/Mips/MipsAsmPrinter.cpp b/llvm/lib/Target/Mips/MipsAsmPrinter.cpp index cfb9e5c2226..cd35b0caee5 100644 --- a/llvm/lib/Target/Mips/MipsAsmPrinter.cpp +++ b/llvm/lib/Target/Mips/MipsAsmPrinter.cpp @@ -1053,10 +1053,9 @@ void MipsAsmPrinter::NaClAlignIndirectJumpTargets(MachineFunction &MF) { } // If basic block address is taken, block can be target of indirect branch. - for (MachineFunction::iterator MBB = MF.begin(), E = MF.end(); - MBB != E; ++MBB) { - if (MBB->hasAddressTaken()) - MBB->setAlignment(MIPS_NACL_BUNDLE_ALIGN); + for (auto &MBB : MF) { + if (MBB.hasAddressTaken()) + MBB.setAlignment(MIPS_NACL_BUNDLE_ALIGN); } } |