Use a range loop. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236047 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2015-04-28 21:58:05 +00:00
parent 0595a97817
commit 7aff72189a

View File

@ -1454,10 +1454,9 @@ void ELFObjectWriter::createIndexedSections(
MCContext &Ctx = Asm.getContext(); MCContext &Ctx = Asm.getContext();
// Build the groups // Build the groups
for (MCAssembler::const_iterator it = Asm.begin(), ie = Asm.end(); for (const MCSectionData &SD : Asm) {
it != ie; ++it) {
const MCSectionELF &Section = const MCSectionELF &Section =
static_cast<const MCSectionELF&>(it->getSection()); static_cast<const MCSectionELF &>(SD.getSection());
if (!(Section.getFlags() & ELF::SHF_GROUP)) if (!(Section.getFlags() & ELF::SHF_GROUP))
continue; continue;