mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-04 02:24:29 +00:00
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:
@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user