Lines Matching refs:SectionBase

53 using SectionPred = std::function<bool(const SectionBase &Sec)>;
55 static bool isDebugSection(const SectionBase &Sec) { in isDebugSection()
59 static bool isDWOSection(const SectionBase &Sec) { in isDWOSection()
63 static bool onlyKeepDWOPred(const Object &Obj, const SectionBase &Sec) { in onlyKeepDWOPred()
101 static void setSectionFlagsAndType(SectionBase &Sec, SectionFlag Flags) { in setSectionFlagsAndType()
199 static bool isCompressable(const SectionBase &Sec) { in isCompressable()
205 Object &Obj, function_ref<bool(const SectionBase &)> ShouldReplace, in replaceDebugSections()
206 function_ref<Expected<SectionBase *>(const SectionBase *)> AddSection) { in replaceDebugSections()
210 SmallVector<SectionBase *, 13> ToReplace; in replaceDebugSections()
216 DenseMap<SectionBase *, SectionBase *> FromTo; in replaceDebugSections()
217 for (SectionBase *S : ToReplace) { in replaceDebugSections()
218 Expected<SectionBase *> NewSection = AddSection(S); in replaceDebugSections()
325 for (SectionBase &Sec : Obj.sections()) in updateAndRemoveSymbols()
371 SectionPred RemovePred = [](const SectionBase &) { return false; }; in replaceAndRemoveSections() argument
375 RemovePred = [&Config](const SectionBase &Sec) { in replaceAndRemoveSections()
381 RemovePred = [RemovePred](const SectionBase &Sec) { in replaceAndRemoveSections()
386 RemovePred = [RemovePred, &Obj](const SectionBase &Sec) { in replaceAndRemoveSections()
391 RemovePred = [RemovePred, &Obj](const SectionBase &Sec) { in replaceAndRemoveSections()
409 RemovePred = [RemovePred](const SectionBase &Sec) { in replaceAndRemoveSections()
415 RemovePred = [RemovePred](const SectionBase &Sec) { in replaceAndRemoveSections()
421 RemovePred = [RemovePred, &Obj](const SectionBase &Sec) { in replaceAndRemoveSections()
430 RemovePred = [RemovePred, &Obj](const SectionBase &Sec) { in replaceAndRemoveSections()
449 RemovePred = [RemovePred](const SectionBase &Sec) { in replaceAndRemoveSections()
460 RemovePred = [&Config, RemovePred, &Obj](const SectionBase &Sec) { in replaceAndRemoveSections()
482 RemovePred = [&Config, RemovePred](const SectionBase &Sec) { in replaceAndRemoveSections()
498 RemovePred = [&Obj, RemovePred](const SectionBase &Sec) { in replaceAndRemoveSections()
511 [&Config, &Obj](const SectionBase *S) -> Expected<SectionBase *> { in replaceAndRemoveSections()
519 [](const SectionBase &S) { return isa<CompressedSection>(&S); }, in replaceAndRemoveSections()
520 [&Obj](const SectionBase *S) { in replaceAndRemoveSections()
533 SectionBase *Sec = Obj.findSection(SymInfo.SectionName); in addSymbol()
610 [&Obj](const SectionBase &Sec) { return onlyKeepDWOPred(Obj, Sec); }); in handleArgs()
633 for (SectionBase &Sec : Obj.sections()) { in handleArgs()
694 DenseSet<SectionBase *> RenamedSections; in handleArgs()
695 for (SectionBase &Sec : Obj.sections()) { in handleArgs()
726 DenseSet<SectionBase *> PrefixedSections; in handleArgs()
727 for (SectionBase &Sec : Obj.sections()) { in handleArgs()
739 const SectionBase *TargetSec = RelocSec->getSection(); in handleArgs()