Lines Matching refs:InputSectionBase

53 static StringRef getOutputSectionName(const InputSectionBase *s) {  in getOutputSectionName()
58 if (InputSectionBase *rel = isec->getRelocatedSection()) { in getOutputSectionName()
412 bool LinkerScript::shouldKeep(InputSectionBase *s) { in shouldKeep()
424 static bool matchConstraints(ArrayRef<InputSectionBase *> sections, in matchConstraints()
430 sections, [](InputSectionBase *sec) { return sec->flags & SHF_WRITE; }); in matchConstraints()
436 static void sortSections(MutableArrayRef<InputSectionBase *> vec, in sortSections()
438 auto alignmentComparator = [](InputSectionBase *a, InputSectionBase *b) { in sortSections()
444 auto nameComparator = [](InputSectionBase *a, InputSectionBase *b) { in sortSections()
447 auto priorityComparator = [](InputSectionBase *a, InputSectionBase *b) { in sortSections()
477 static void sortInputSections(MutableArrayRef<InputSectionBase *> vec, in sortInputSections()
491 SmallVector<InputSectionBase *, 0>
493 ArrayRef<InputSectionBase *> sections, in computeInputSections()
495 SmallVector<InputSectionBase *, 0> ret; in computeInputSections()
498 DenseSet<InputSectionBase *> spills; in computeInputSections()
504 MutableArrayRef<InputSectionBase *>(ret).slice(begin, end - begin), in computeInputSections()
516 InputSectionBase *sec = sections[i]; in computeInputSections()
580 MutableArrayRef<InputSectionBase *>(ret).slice(sizeBeforeCurrPat), in computeInputSections()
593 for (InputSectionBase *&sec : ret) { in computeInputSections()
614 void LinkerScript::discard(InputSectionBase &s) { in discard()
628 SmallVector<InputSectionBase *, 0> secs( in discardSynthetic()
633 for (InputSectionBase *s : computeInputSections(isd, secs, outCmd)) in discardSynthetic()
638 SmallVector<InputSectionBase *, 0>
640 SmallVector<InputSectionBase *, 0> ret; in createInputSectionList()
645 for (InputSectionBase *s : isd->sectionBases) in createInputSectionList()
656 SmallVector<InputSectionBase *, 0> v = createInputSectionList(*osec); in processSectionCommands()
661 for (InputSectionBase *s : v) in processSectionCommands()
676 for (InputSectionBase *s : v) in processSectionCommands()
687 for (InputSectionBase *s : v) in processSectionCommands()
767 static OutputDesc *createSection(InputSectionBase *isec, StringRef outsecName) { in createSection()
774 InputSectionBase *isec, StringRef outsecName) { in addInputSec()
857 auto *firstIsec = cast<InputSectionBase>( in addInputSec()
881 auto add = [&](InputSectionBase *s) { in addOrphanSections()
904 for (InputSectionBase *isec : ctx.inputSections) { in addOrphanSections()
916 if (InputSectionBase *rel = sec->getRelocatedSection()) in addOrphanSections()
917 if (auto *relIS = dyn_cast_or_null<InputSectionBase>(rel->parent)) in addOrphanSections()
921 for (InputSectionBase *depSec : isec->dependentSections) in addOrphanSections()
943 for (const InputSectionBase *sec : orphanSections) { in diagnoseOrphanHandling()