mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-02 02:22:31 +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:
parent
0595a97817
commit
7aff72189a
@ -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<const MCSectionELF&>(it->getSection());
|
||||
static_cast<const MCSectionELF &>(SD.getSection());
|
||||
if (!(Section.getFlags() & ELF::SHF_GROUP))
|
||||
continue;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user