Lines Matching refs:InputSectionBase
58 void forEachRelSec(llvm::function_ref<void(InputSectionBase &)> fn);
98 StringRef elf::getOutputSectionName(const InputSectionBase *s) { in getOutputSectionName()
106 if (InputSectionBase *rel = isec->getRelocatedSection()) { in getOutputSectionName()
185 std::vector<InputSectionBase *> newSections; in copySectionsIntoPartitions()
187 for (InputSectionBase *s : inputSections) { in copySectionsIntoPartitions()
190 InputSectionBase *copy; in copySectionsIntoPartitions()
208 for (InputSectionBase *&s : inputSections) { in combineEhSections()
224 std::vector<InputSectionBase *> &v = inputSections; in combineEhSections()
690 for (InputSectionBase *s : f->getSections()) { in markUsedLocalSymbols()
754 if (isa<InputSectionBase>(sec) && !sec->isLive()) in includeInSymtab()
807 InputSectionBase *isec = cast<InputSectionDescription>(*i)->sections[0]; in addSectionSymbols()
1109 llvm::function_ref<void(InputSectionBase &)> fn) { in forEachRelSec()
1115 for (InputSectionBase *isec : inputSections) in forEachRelSec()
1294 static void maybeShuffle(DenseMap<const InputSectionBase *, int> &order) { in maybeShuffle() argument
1298 std::vector<InputSectionBase *> matched, sections = inputSections; in maybeShuffle()
1302 for (InputSectionBase *sec : sections) in maybeShuffle()
1317 for (InputSectionBase *&sec : sections) in maybeShuffle()
1325 for (InputSectionBase *sec : sections) { in maybeShuffle()
1332 static DenseMap<const InputSectionBase *, int> buildSectionOrder() { in buildSectionOrder()
1333 DenseMap<const InputSectionBase *, int> sectionOrder; in buildSectionOrder()
1365 if (auto *sec = dyn_cast_or_null<InputSectionBase>(d->section)) { in buildSectionOrder()
1366 int &priority = sectionOrder[cast<InputSectionBase>(sec->repl)]; in buildSectionOrder()
1396 const DenseMap<const InputSectionBase *, int> &order) { in sortISDBySectionOrder() argument
1459 const DenseMap<const InputSectionBase *, int> &order) { in sortSection() argument
1521 DenseMap<const InputSectionBase *, int> order = buildSectionOrder(); in sortInputSections()
1805 const InputSectionBase *inputSec = dyn_cast<InputSectionBase>(sec->repl); in fixSymbolsAfterShrinking()
1895 [](InputSectionBase *s) { in removeUnusedSyntheticSections()
1903 start, inputSections.end(), [&](InputSectionBase *s) { in removeUnusedSyntheticSections()
1918 [=](const InputSectionBase *isec) { return isec == ss; }); in removeUnusedSyntheticSections()
1923 DenseSet<InputSectionBase *> unused(end, inputSections.end()); in removeUnusedSyntheticSections()