From: Rafael Espindola Date: Tue, 28 Apr 2015 21:58:05 +0000 (+0000) Subject: Use a range loop. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7aff72189a04d9560f84f43b4ff8bc783250ff0d;p=llvm Use a range loop. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236047 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/MC/ELFObjectWriter.cpp b/lib/MC/ELFObjectWriter.cpp index 90555ba5345..068c1293548 100644 --- a/lib/MC/ELFObjectWriter.cpp +++ b/lib/MC/ELFObjectWriter.cpp @@ -1454,10 +1454,9 @@ void ELFObjectWriter::createIndexedSections( MCContext &Ctx = Asm.getContext(); // Build the groups - for (MCAssembler::const_iterator it = Asm.begin(), ie = Asm.end(); - it != ie; ++it) { + for (const MCSectionData &SD : Asm) { const MCSectionELF &Section = - static_cast(it->getSection()); + static_cast(SD.getSection()); if (!(Section.getFlags() & ELF::SHF_GROUP)) continue;