Lines Matching refs:InputSectionBase

53 static StringRef getOutputSectionName(const InputSectionBase *s) {  in getOutputSectionName()
58 if (InputSectionBase *rel = isec->getRelocatedSection()) { in getOutputSectionName()
416 bool LinkerScript::shouldKeep(InputSectionBase *s) { in shouldKeep()
428 static bool matchConstraints(ArrayRef<InputSectionBase *> sections, in matchConstraints()
434 sections, [](InputSectionBase *sec) { return sec->flags & SHF_WRITE; }); in matchConstraints()
440 static void sortSections(MutableArrayRef<InputSectionBase *> vec, in sortSections()
442 auto alignmentComparator = [](InputSectionBase *a, InputSectionBase *b) { in sortSections()
448 auto nameComparator = [](InputSectionBase *a, InputSectionBase *b) { in sortSections()
451 auto priorityComparator = [](InputSectionBase *a, InputSectionBase *b) { in sortSections()
481 static void sortInputSections(MutableArrayRef<InputSectionBase *> vec, in sortInputSections()
495 SmallVector<InputSectionBase *, 0>
497 ArrayRef<InputSectionBase *> sections) { in computeInputSections()
498 SmallVector<InputSectionBase *, 0> ret; in computeInputSections()
506 MutableArrayRef<InputSectionBase *>(ret).slice(begin, end - begin), in computeInputSections()
518 InputSectionBase *sec = sections[i]; in computeInputSections()
559 MutableArrayRef<InputSectionBase *>(ret).slice(sizeBeforeCurrPat), in computeInputSections()
569 void LinkerScript::discard(InputSectionBase &s) { in discard()
583 SmallVector<InputSectionBase *, 0> secs( in discardSynthetic()
588 for (InputSectionBase *s : computeInputSections(isd, secs)) in discardSynthetic()
593 SmallVector<InputSectionBase *, 0>
595 SmallVector<InputSectionBase *, 0> ret; in createInputSectionList()
600 for (InputSectionBase *s : isd->sectionBases) in createInputSectionList()
611 SmallVector<InputSectionBase *, 0> v = createInputSectionList(*osec); in processSectionCommands()
616 for (InputSectionBase *s : v) in processSectionCommands()
631 for (InputSectionBase *s : v) in processSectionCommands()
642 for (InputSectionBase *s : v) in processSectionCommands()
719 static OutputDesc *createSection(InputSectionBase *isec, StringRef outsecName) { in createSection()
726 InputSectionBase *isec, StringRef outsecName) { in addInputSec()
810 auto *firstIsec = cast<InputSectionBase>( in addInputSec()
834 auto add = [&](InputSectionBase *s) { in addOrphanSections()
857 for (InputSectionBase *isec : ctx.inputSections) { in addOrphanSections()
869 if (InputSectionBase *rel = sec->getRelocatedSection()) in addOrphanSections()
870 if (auto *relIS = dyn_cast_or_null<InputSectionBase>(rel->parent)) in addOrphanSections()
874 for (InputSectionBase *depSec : isec->dependentSections) in addOrphanSections()
895 for (const InputSectionBase *sec : orphanSections) { in diagnoseOrphanHandling()