Lines Matching defs:SectionBase

47 using SectionPred = std::function<bool(const SectionBase &Sec)>;
49 static bool isDebugSection(const SectionBase &Sec) {
53 static bool isDWOSection(const SectionBase &Sec) {
57 static bool onlyKeepDWOPred(const Object &Obj, const SectionBase &Sec) {
105 static void setSectionType(SectionBase &Sec, uint64_t Type) {
113 static Error setSectionFlagsAndType(SectionBase &Sec, SectionFlag Flags,
216 SmallVector<std::pair<SectionBase *, std::function<SectionBase *()>>, 0>
218 for (SectionBase &Sec : sections()) {
252 DenseMap<SectionBase *, SectionBase *> FromTo;
367 for (SectionBase &Sec : Obj.sections())
413 SectionPred RemovePred = [](const SectionBase &) { return false; };
417 RemovePred = [&Config](const SectionBase &Sec) {
423 RemovePred = [RemovePred](const SectionBase &Sec) {
428 RemovePred = [RemovePred, &Obj](const SectionBase &Sec) {
433 RemovePred = [RemovePred, &Obj](const SectionBase &Sec) {
451 RemovePred = [RemovePred](const SectionBase &Sec) {
457 RemovePred = [RemovePred](const SectionBase &Sec) {
463 RemovePred = [RemovePred, &Obj](const SectionBase &Sec) {
472 RemovePred = [RemovePred, &Obj](const SectionBase &Sec) {
493 RemovePred = [RemovePred](const SectionBase &Sec) {
504 RemovePred = [&Config, RemovePred, &Obj](const SectionBase &Sec) {
526 RemovePred = [&Config, RemovePred](const SectionBase &Sec) {
542 RemovePred = [&Obj, RemovePred](const SectionBase &Sec) {
561 SectionBase *Sec = Obj.findSection(SymInfo.SectionName);
793 [&Obj](const SectionBase &Sec) { return onlyKeepDWOPred(Obj, Sec); });
816 for (SectionBase &Sec : Obj.sections()) {
860 for (SectionBase &Sec : Obj.sections()) {
968 DenseSet<SectionBase *> RenamedSections;
969 for (SectionBase &Sec : Obj.sections()) {
1002 DenseSet<SectionBase *> PrefixedSections;
1003 for (SectionBase &Sec : Obj.sections()) {
1015 const SectionBase *TargetSec = RelocSec->getSection();