Lines Matching refs:SectionBase

54 using SectionPred = std::function<bool(const SectionBase &Sec)>;
56 static bool isDebugSection(const SectionBase &Sec) { in isDebugSection()
61 static bool isDWOSection(const SectionBase &Sec) { in isDWOSection()
65 static bool onlyKeepDWOPred(const Object &Obj, const SectionBase &Sec) { in onlyKeepDWOPred()
103 static void setSectionFlagsAndType(SectionBase &Sec, SectionFlag Flags) { in setSectionFlagsAndType()
201 static bool isCompressable(const SectionBase &Sec) { in isCompressable()
208 function_ref<bool(const SectionBase &)> ShouldReplace, in replaceDebugSections()
209 function_ref<Expected<SectionBase *>(const SectionBase *)> AddSection) { in replaceDebugSections()
213 SmallVector<SectionBase *, 13> ToReplace; in replaceDebugSections()
219 DenseMap<SectionBase *, SectionBase *> FromTo; in replaceDebugSections()
220 for (SectionBase *S : ToReplace) { in replaceDebugSections()
221 Expected<SectionBase *> NewSection = AddSection(S); in replaceDebugSections()
234 RemovePred = [ShouldReplace, RemovePred](const SectionBase &Sec) { in replaceDebugSections()
301 for (SectionBase &Sec : Obj.sections()) in updateAndRemoveSymbols()
343 SectionPred RemovePred = [](const SectionBase &) { return false; }; in replaceAndRemoveSections() argument
347 RemovePred = [&Config](const SectionBase &Sec) { in replaceAndRemoveSections()
353 RemovePred = [RemovePred](const SectionBase &Sec) { in replaceAndRemoveSections()
358 RemovePred = [RemovePred, &Obj](const SectionBase &Sec) { in replaceAndRemoveSections()
363 RemovePred = [RemovePred, &Obj](const SectionBase &Sec) { in replaceAndRemoveSections()
381 RemovePred = [RemovePred](const SectionBase &Sec) { in replaceAndRemoveSections()
387 RemovePred = [RemovePred](const SectionBase &Sec) { in replaceAndRemoveSections()
393 RemovePred = [RemovePred, &Obj](const SectionBase &Sec) { in replaceAndRemoveSections()
402 RemovePred = [RemovePred, &Obj](const SectionBase &Sec) { in replaceAndRemoveSections()
421 RemovePred = [RemovePred](const SectionBase &Sec) { in replaceAndRemoveSections()
432 RemovePred = [&Config, RemovePred, &Obj](const SectionBase &Sec) { in replaceAndRemoveSections()
454 RemovePred = [&Config, RemovePred](const SectionBase &Sec) { in replaceAndRemoveSections()
470 RemovePred = [&Obj, RemovePred](const SectionBase &Sec) { in replaceAndRemoveSections()
480 [&Config, &Obj](const SectionBase *S) -> Expected<SectionBase *> { in replaceAndRemoveSections()
492 [](const SectionBase &S) { return isa<CompressedSection>(&S); }, in replaceAndRemoveSections()
493 [&Obj](const SectionBase *S) { in replaceAndRemoveSections()
506 SectionBase *Sec = Obj.findSection(SymInfo.SectionName); in addSymbol()
574 [&Obj](const SectionBase &Sec) { return onlyKeepDWOPred(Obj, Sec); }); in handleArgs()
597 for (SectionBase &Sec : Obj.sections()) { in handleArgs()
612 DenseSet<SectionBase *> PrefixedSections; in handleArgs()
613 for (SectionBase &Sec : Obj.sections()) { in handleArgs()
625 const SectionBase *TargetSec = RelocSec->getSection(); in handleArgs()
654 for (SectionBase &Sec : Obj.sections()) { in handleArgs()