@@ -110,8 +110,8 @@ void CodeSection::writeTo(uint8_t *Buf) {
110
110
memcpy (Buf, CodeSectionHeader.data (), CodeSectionHeader.size ());
111
111
112
112
// Write code section bodies
113
- parallelForEach ( Functions,
114
- [&]( const InputChunk * Chunk) { Chunk ->writeTo (Buf); } );
113
+ for ( const InputChunk *Chunk : Functions)
114
+ Chunk->writeTo (Buf);
115
115
}
116
116
117
117
uint32_t CodeSection::numRelocations () const {
@@ -175,15 +175,15 @@ void DataSection::writeTo(uint8_t *Buf) {
175
175
// Write data section headers
176
176
memcpy (Buf, DataSectionHeader.data (), DataSectionHeader.size ());
177
177
178
- parallelForEach (Segments, [&] (const OutputSegment *Segment) {
178
+ for (const OutputSegment *Segment : Segments ) {
179
179
// Write data segment header
180
180
uint8_t *SegStart = Buf + Segment->SectionOffset ;
181
181
memcpy (SegStart, Segment->Header .data (), Segment->Header .size ());
182
182
183
183
// Write segment data payload
184
184
for (const InputChunk *Chunk : Segment->InputSegments )
185
185
Chunk->writeTo (Buf);
186
- });
186
+ }
187
187
}
188
188
189
189
uint32_t DataSection::numRelocations () const {
@@ -231,8 +231,8 @@ void CustomSection::writeTo(uint8_t *Buf) {
231
231
Buf += NameData.size ();
232
232
233
233
// Write custom sections payload
234
- parallelForEach ( InputSections,
235
- [&]( const InputSection * Section) { Section ->writeTo (Buf); } );
234
+ for ( const InputSection *Section : InputSections)
235
+ Section->writeTo (Buf);
236
236
}
237
237
238
238
uint32_t CustomSection::numRelocations () const {
0 commit comments