Lines Matching refs:SectionBase

52 using SectionPred = std::function<bool(const SectionBase &Sec)>;
54 static bool isDebugSection(const SectionBase &Sec) { in isDebugSection()
58 static bool isDWOSection(const SectionBase &Sec) { in isDWOSection()
62 static bool onlyKeepDWOPred(const Object &Obj, const SectionBase &Sec) { in onlyKeepDWOPred()
110 static void setSectionType(SectionBase &Sec, uint64_t Type) { in setSectionType()
118 static Error setSectionFlagsAndType(SectionBase &Sec, SectionFlag Flags, in setSectionFlagsAndType()
215 static bool isCompressable(const SectionBase &Sec) { in isCompressable()
221 Object &Obj, function_ref<bool(const SectionBase &)> ShouldReplace, in replaceDebugSections()
222 function_ref<Expected<SectionBase *>(const SectionBase *)> AddSection) { in replaceDebugSections()
226 SmallVector<SectionBase *, 13> ToReplace; in replaceDebugSections()
232 DenseMap<SectionBase *, SectionBase *> FromTo; in replaceDebugSections()
233 for (SectionBase *S : ToReplace) { in replaceDebugSections()
234 Expected<SectionBase *> NewSection = AddSection(S); in replaceDebugSections()
341 for (SectionBase &Sec : Obj.sections()) in updateAndRemoveSymbols()
387 SectionPred RemovePred = [](const SectionBase &) { return false; }; in replaceAndRemoveSections() argument
391 RemovePred = [&Config](const SectionBase &Sec) { in replaceAndRemoveSections()
397 RemovePred = [RemovePred](const SectionBase &Sec) { in replaceAndRemoveSections()
402 RemovePred = [RemovePred, &Obj](const SectionBase &Sec) { in replaceAndRemoveSections()
407 RemovePred = [RemovePred, &Obj](const SectionBase &Sec) { in replaceAndRemoveSections()
425 RemovePred = [RemovePred](const SectionBase &Sec) { in replaceAndRemoveSections()
431 RemovePred = [RemovePred](const SectionBase &Sec) { in replaceAndRemoveSections()
437 RemovePred = [RemovePred, &Obj](const SectionBase &Sec) { in replaceAndRemoveSections()
446 RemovePred = [RemovePred, &Obj](const SectionBase &Sec) { in replaceAndRemoveSections()
465 RemovePred = [RemovePred](const SectionBase &Sec) { in replaceAndRemoveSections()
476 RemovePred = [&Config, RemovePred, &Obj](const SectionBase &Sec) { in replaceAndRemoveSections()
498 RemovePred = [&Config, RemovePred](const SectionBase &Sec) { in replaceAndRemoveSections()
514 RemovePred = [&Obj, RemovePred](const SectionBase &Sec) { in replaceAndRemoveSections()
527 [&Config, &Obj](const SectionBase *S) -> Expected<SectionBase *> { in replaceAndRemoveSections()
535 [](const SectionBase &S) { return isa<CompressedSection>(&S); }, in replaceAndRemoveSections()
536 [&Obj](const SectionBase *S) { in replaceAndRemoveSections()
549 SectionBase *Sec = Obj.findSection(SymInfo.SectionName); in addSymbol()
626 [&Obj](const SectionBase &Sec) { return onlyKeepDWOPred(Obj, Sec); }); in handleArgs()
649 for (SectionBase &Sec : Obj.sections()) { in handleArgs()
711 DenseSet<SectionBase *> RenamedSections; in handleArgs()
712 for (SectionBase &Sec : Obj.sections()) { in handleArgs()
745 DenseSet<SectionBase *> PrefixedSections; in handleArgs()
746 for (SectionBase &Sec : Obj.sections()) { in handleArgs()
758 const SectionBase *TargetSec = RelocSec->getSection(); in handleArgs()