Lines Matching refs:InputSectionBase

53 static StringRef getOutputSectionName(const InputSectionBase *s) {  in getOutputSectionName()
61 if (InputSectionBase *rel = isec->getRelocatedSection()) { in getOutputSectionName()
411 bool LinkerScript::shouldKeep(InputSectionBase *s) { in shouldKeep()
423 static bool matchConstraints(ArrayRef<InputSectionBase *> sections, in matchConstraints()
429 sections, [](InputSectionBase *sec) { return sec->flags & SHF_WRITE; }); in matchConstraints()
435 static void sortSections(MutableArrayRef<InputSectionBase *> vec, in sortSections()
437 auto alignmentComparator = [](InputSectionBase *a, InputSectionBase *b) { in sortSections()
443 auto nameComparator = [](InputSectionBase *a, InputSectionBase *b) { in sortSections()
446 auto priorityComparator = [](InputSectionBase *a, InputSectionBase *b) { in sortSections()
474 static void sortInputSections(MutableArrayRef<InputSectionBase *> vec, in sortInputSections()
488 SmallVector<InputSectionBase *, 0>
490 ArrayRef<InputSectionBase *> sections) { in computeInputSections()
491 SmallVector<InputSectionBase *, 0> ret; in computeInputSections()
499 MutableArrayRef<InputSectionBase *>(ret).slice(begin, end - begin), in computeInputSections()
511 InputSectionBase *sec = sections[i]; in computeInputSections()
552 MutableArrayRef<InputSectionBase *>(ret).slice(sizeBeforeCurrPat), in computeInputSections()
562 void LinkerScript::discard(InputSectionBase &s) { in discard()
576 SmallVector<InputSectionBase *, 0> secs( in discardSynthetic()
581 for (InputSectionBase *s : computeInputSections(isd, secs)) in discardSynthetic()
586 SmallVector<InputSectionBase *, 0>
588 SmallVector<InputSectionBase *, 0> ret; in createInputSectionList()
593 for (InputSectionBase *s : isd->sectionBases) in createInputSectionList()
604 SmallVector<InputSectionBase *, 0> v = createInputSectionList(*osec); in processSectionCommands()
609 for (InputSectionBase *s : v) in processSectionCommands()
624 for (InputSectionBase *s : v) in processSectionCommands()
635 for (InputSectionBase *s : v) in processSectionCommands()
712 static OutputDesc *createSection(InputSectionBase *isec, StringRef outsecName) { in createSection()
719 InputSectionBase *isec, StringRef outsecName) { in addInputSec()
803 auto *firstIsec = cast<InputSectionBase>( in addInputSec()
827 auto add = [&](InputSectionBase *s) { in addOrphanSections()
849 for (InputSectionBase *isec : inputSections) { in addOrphanSections()
857 if (InputSectionBase *rel = sec->getRelocatedSection()) in addOrphanSections()
858 if (auto *relIS = dyn_cast_or_null<InputSectionBase>(rel->parent)) in addOrphanSections()
862 for (InputSectionBase *depSec : isec->dependentSections) in addOrphanSections()
881 for (const InputSectionBase *sec : orphanSections) { in diagnoseOrphanHandling()