Use make_range(rbegin(), rend()) to allow foreach loops. NFC.
authorPete Cooper <peter_cooper@apple.com>
Fri, 24 Jul 2015 21:13:43 +0000 (21:13 +0000)
committerPete Cooper <peter_cooper@apple.com>
Fri, 24 Jul 2015 21:13:43 +0000 (21:13 +0000)
commit9f2f1650c4ec4c151e2aff052606f0841f556f73
tree9f7760387249ae0cf6cb636b6c0849441c2255c8
parentd232d63fa2b13729a1e04b9e9a4d392a0d55c46d
Use make_range(rbegin(), rend()) to allow foreach loops.  NFC.

Instead of the pattern

for (auto I = x.rbegin(), E = x.end(); I != E; ++I)

we can use make_range to construct the reverse range and iterate using
that instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243163 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/ARMException.cpp
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
lib/CodeGen/AsmPrinter/EHStreamer.cpp
lib/CodeGen/DeadMachineInstructionElim.cpp
lib/CodeGen/ExecutionDepsFix.cpp
lib/IR/AsmWriter.cpp
lib/Target/AArch64/AArch64A53Fix835769.cpp
lib/Transforms/Scalar/Float2Int.cpp
lib/Transforms/Scalar/LoopDistribute.cpp
lib/Transforms/Utils/InlineFunction.cpp