[llvm] r252260 - Use a range loop.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 5 17:25:57 PST 2015
Author: rafael
Date: Thu Nov 5 19:25:56 2015
New Revision: 252260
URL: http://llvm.org/viewvc/llvm-project?rev=252260&view=rev
Log:
Use a range loop.
Modified:
llvm/trunk/lib/MC/MCDwarf.cpp
Modified: llvm/trunk/lib/MC/MCDwarf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCDwarf.cpp?rev=252260&r1=252259&r2=252260&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCDwarf.cpp (original)
+++ llvm/trunk/lib/MC/MCDwarf.cpp Thu Nov 5 19:25:56 2015
@@ -1525,9 +1525,7 @@ void MCDwarfFrameEmitter::Emit(MCObjectS
const MCSymbol *DummyDebugKey = nullptr;
NeedsEHFrameSection = !MOFI->getSupportsCompactUnwindWithoutEHFrame();
bool CanOmitDwarf = MOFI->getOmitDwarfIfHaveCompactUnwind();
- for (unsigned i = 0, n = FrameArray.size(); i < n; ++i) {
- const MCDwarfFrameInfo &Frame = FrameArray[i];
-
+ for (const MCDwarfFrameInfo &Frame : FrameArray) {
if (CanOmitDwarf && Frame.CompactUnwindEncoding !=
MOFI->getCompactUnwindDwarfEHFrameOnly())
// Don't generate an EH frame if we don't need one. I.e., it's taken care
More information about the llvm-commits
mailing list