mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-24 12:29:33 +00:00
Use a range loop. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236015 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f060668270
commit
3813ef6886
@ -1611,9 +1611,8 @@ void ELFObjectWriter::WriteObject(MCAssembler &Asm,
|
||||
WriteHeader(Asm, NumSections + 1);
|
||||
|
||||
// ... then the sections ...
|
||||
for (unsigned i = 0; i < NumSections; ++i) {
|
||||
const MCSectionELF &Section = *Sections[i];
|
||||
const MCSectionData &SD = Asm.getOrCreateSectionData(Section);
|
||||
for (const MCSectionELF *Section : Sections) {
|
||||
const MCSectionData &SD = Asm.getOrCreateSectionData(*Section);
|
||||
uint64_t Padding = OffsetToAlignment(OS.tell(), SD.getAlignment());
|
||||
WriteZeros(Padding);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user