Lines Matching refs:InputSectionBase
356 bool LinkerScript::shouldKeep(InputSectionBase *s) { in shouldKeep()
368 static bool matchConstraints(ArrayRef<InputSectionBase *> sections, in matchConstraints()
374 sections, [](InputSectionBase *sec) { return sec->flags & SHF_WRITE; }); in matchConstraints()
380 static void sortSections(MutableArrayRef<InputSectionBase *> vec, in sortSections()
382 auto alignmentComparator = [](InputSectionBase *a, InputSectionBase *b) { in sortSections()
388 auto nameComparator = [](InputSectionBase *a, InputSectionBase *b) { in sortSections()
391 auto priorityComparator = [](InputSectionBase *a, InputSectionBase *b) { in sortSections()
419 static void sortInputSections(MutableArrayRef<InputSectionBase *> vec, in sortInputSections()
433 std::vector<InputSectionBase *>
435 ArrayRef<InputSectionBase *> sections) { in computeInputSections()
436 std::vector<InputSectionBase *> ret; in computeInputSections()
444 MutableArrayRef<InputSectionBase *>(ret).slice(begin, end - begin), in computeInputSections()
456 InputSectionBase *sec = sections[i]; in computeInputSections()
497 MutableArrayRef<InputSectionBase *>(ret).slice(sizeBeforeCurrPat), in computeInputSections()
507 void LinkerScript::discard(InputSectionBase *s) { in discard()
529 std::vector<InputSectionBase *> secs(part.armExidx->exidxSections.begin(), in discardSynthetic()
533 std::vector<InputSectionBase *> matches = in discardSynthetic()
535 for (InputSectionBase *s : matches) in discardSynthetic()
541 std::vector<InputSectionBase *>
543 std::vector<InputSectionBase *> ret; in createInputSectionList()
548 for (InputSectionBase *s : cmd->sectionBases) in createInputSectionList()
559 std::vector<InputSectionBase *> v = createInputSectionList(*osec); in processSectionCommands()
564 for (InputSectionBase *s : v) in processSectionCommands()
579 for (InputSectionBase *s : v) in processSectionCommands()
590 for (InputSectionBase *s : v) in processSectionCommands()
663 static OutputSection *createSection(InputSectionBase *isec, in createSection()
672 InputSectionBase *isec, StringRef outsecName) { in addInputSec()
755 auto *firstIsec = cast<InputSectionBase>( in addInputSec()
780 std::function<void(InputSectionBase *)> add; in addOrphanSections()
781 add = [&](InputSectionBase *s) { in addOrphanSections()
799 for (InputSectionBase *depSec : s->dependentSections) in addOrphanSections()
808 for (InputSectionBase *isec : inputSections) { in addOrphanSections()
816 if (InputSectionBase *rel = sec->getRelocatedSection()) in addOrphanSections()
817 if (auto *relIS = dyn_cast_or_null<InputSectionBase>(rel->parent)) in addOrphanSections()
836 for (const InputSectionBase *sec : orphanSections) { in diagnoseOrphanHandling()