Lines Matching refs:InputSectionBase

53 static StringRef getOutputSectionName(const InputSectionBase *s) {  in getOutputSectionName()
61 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()
475 static void sortInputSections(MutableArrayRef<InputSectionBase *> vec, in sortInputSections()
489 SmallVector<InputSectionBase *, 0>
491 ArrayRef<InputSectionBase *> sections) { in computeInputSections()
492 SmallVector<InputSectionBase *, 0> ret; in computeInputSections()
500 MutableArrayRef<InputSectionBase *>(ret).slice(begin, end - begin), in computeInputSections()
512 InputSectionBase *sec = sections[i]; in computeInputSections()
553 MutableArrayRef<InputSectionBase *>(ret).slice(sizeBeforeCurrPat), in computeInputSections()
563 void LinkerScript::discard(InputSectionBase &s) { in discard()
577 SmallVector<InputSectionBase *, 0> secs( in discardSynthetic()
582 for (InputSectionBase *s : computeInputSections(isd, secs)) in discardSynthetic()
587 SmallVector<InputSectionBase *, 0>
589 SmallVector<InputSectionBase *, 0> ret; in createInputSectionList()
594 for (InputSectionBase *s : isd->sectionBases) in createInputSectionList()
605 SmallVector<InputSectionBase *, 0> v = createInputSectionList(*osec); in processSectionCommands()
610 for (InputSectionBase *s : v) in processSectionCommands()
625 for (InputSectionBase *s : v) in processSectionCommands()
636 for (InputSectionBase *s : v) in processSectionCommands()
713 static OutputDesc *createSection(InputSectionBase *isec, StringRef outsecName) { in createSection()
720 InputSectionBase *isec, StringRef outsecName) { in addInputSec()
804 auto *firstIsec = cast<InputSectionBase>( in addInputSec()
828 auto add = [&](InputSectionBase *s) { in addOrphanSections()
851 for (InputSectionBase *isec : ctx.inputSections) { in addOrphanSections()
863 if (InputSectionBase *rel = sec->getRelocatedSection()) in addOrphanSections()
864 if (auto *relIS = dyn_cast_or_null<InputSectionBase>(rel->parent)) in addOrphanSections()
868 for (InputSectionBase *depSec : isec->dependentSections) in addOrphanSections()
889 for (const InputSectionBase *sec : orphanSections) { in diagnoseOrphanHandling()