git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236015
91177308-0d34-0410-b5e6-
96231b3b80d8
WriteHeader(Asm, NumSections + 1);
// ... then the sections ...
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);
uint64_t Padding = OffsetToAlignment(OS.tell(), SD.getAlignment());
WriteZeros(Padding);