Lines Matching defs:SectionBase
52 using SectionPred = std::function<bool(const SectionBase &Sec)>;
54 static bool isDebugSection(const SectionBase &Sec) {
58 static bool isDWOSection(const SectionBase &Sec) {
62 static bool onlyKeepDWOPred(const Object &Obj, const SectionBase &Sec) {
110 static void setSectionType(SectionBase &Sec, uint64_t Type) {
118 static Error setSectionFlagsAndType(SectionBase &Sec, SectionFlag Flags,
221 SmallVector<std::pair<SectionBase *, std::function<SectionBase *()>>, 0>
223 for (SectionBase &Sec : sections()) {
257 DenseMap<SectionBase *, SectionBase *> FromTo;
372 for (SectionBase &Sec : Obj.sections())
418 SectionPred RemovePred = [](const SectionBase &) { return false; };
422 RemovePred = [&Config](const SectionBase &Sec) {
428 RemovePred = [RemovePred](const SectionBase &Sec) {
433 RemovePred = [RemovePred, &Obj](const SectionBase &Sec) {
438 RemovePred = [RemovePred, &Obj](const SectionBase &Sec) {
456 RemovePred = [RemovePred](const SectionBase &Sec) {
462 RemovePred = [RemovePred](const SectionBase &Sec) {
468 RemovePred = [RemovePred, &Obj](const SectionBase &Sec) {
477 RemovePred = [RemovePred, &Obj](const SectionBase &Sec) {
498 RemovePred = [RemovePred](const SectionBase &Sec) {
509 RemovePred = [&Config, RemovePred, &Obj](const SectionBase &Sec) {
531 RemovePred = [&Config, RemovePred](const SectionBase &Sec) {
547 RemovePred = [&Obj, RemovePred](const SectionBase &Sec) {
566 SectionBase *Sec = Obj.findSection(SymInfo.SectionName);
691 [&Obj](const SectionBase &Sec) { return onlyKeepDWOPred(Obj, Sec); });
714 for (SectionBase &Sec : Obj.sections()) {
810 DenseSet<SectionBase *> RenamedSections;
811 for (SectionBase &Sec : Obj.sections()) {
844 DenseSet<SectionBase *> PrefixedSections;
845 for (SectionBase &Sec : Obj.sections()) {
857 const SectionBase *TargetSec = RelocSec->getSection();