Lines Matching refs:Chunks

196   void sortCRTSectionChunks(std::vector<Chunk *> &Chunks);
267 Chunks.push_back(C); in addChunk()
272 Chunks.insert(Chunks.begin(), C); in insertChunkAtStart()
282 for (Chunk *C : Other->Chunks) in merge()
284 Chunks.insert(Chunks.end(), Other->Chunks.begin(), Other->Chunks.end()); in merge()
285 Other->Chunks.clear(); in merge()
378 for (size_t I = 0; I != OS->Chunks.size(); ++I) { in createThunks()
379 SectionChunk *SC = dyn_cast_or_null<SectionChunk>(OS->Chunks[I]); in createThunks()
417 OS->Chunks.insert(OS->Chunks.begin() + ThunkInsertionSpot, ThunkChunk); in createThunks()
430 static bool verifyRanges(const std::vector<Chunk *> Chunks) { in verifyRanges() argument
431 for (Chunk *C : Chunks) { in verifyRanges()
462 Sec->OrigChunks = Sec->Chunks; in finalizeAddresses()
463 OrigNumChunks += Sec->Chunks.size(); in finalizeAddresses()
474 if (!verifyRanges(Sec->Chunks)) { in finalizeAddresses()
478 NumChunks += Sec->Chunks.size(); in finalizeAddresses()
495 Sec->Chunks = Sec->OrigChunks; in finalizeAddresses()
496 for (Chunk *C : Sec->Chunks) in finalizeAddresses()
573 static void sortBySectionOrder(std::vector<Chunk *> &Chunks) { in sortBySectionOrder() argument
581 std::stable_sort(Chunks.begin(), Chunks.end(), in sortBySectionOrder()
624 std::vector<Chunk *> &Chunks = Pair.second; in fixGnuImportChunks() local
625 if (!Chunks.empty()) in fixGnuImportChunks()
627 std::stable_sort(Chunks.begin(), Chunks.end(), [&](Chunk *S, Chunk *T) { in fixGnuImportChunks()
777 std::vector<Chunk *> &Chunks = Pair.second; in createSections() local
778 for (Chunk *C : Chunks) in createSections()
909 for (Chunk *C : Edata.Chunks) in createExportTable()
921 return S->Chunks.empty(); in removeUnusedSections()
1038 if (!PdataSec->Chunks.empty()) { in mergeSections()
1039 FirstPdata = PdataSec->Chunks.front(); in mergeSections()
1040 LastPdata = PdataSec->Chunks.back(); in mergeSections()
1071 for_each(parallel::par, Sec->Chunks.begin(), Sec->Chunks.end(), in readRelocTargets()
1092 for (Chunk *C : Sec->Chunks) { in assignAddresses()
1605 for_each(parallel::par, Sec->Chunks.begin(), Sec->Chunks.end(), in writeSections()
1701 void Writer::sortCRTSectionChunks(std::vector<Chunk *> &Chunks) { in sortCRTSectionChunks() argument
1712 std::stable_sort(Chunks.begin(), Chunks.end(), SectionChunkOrder); in sortCRTSectionChunks()
1715 for (auto &C : Chunks) { in sortCRTSectionChunks()
1742 RelocSec->Chunks.clear(); in addBaserels()
1748 for (Chunk *C : Sec->Chunks) in addBaserels()