Lines Matching defs:SectionBase
53 Error SectionBase::removeSectionReferences(
54 bool, function_ref<bool(const SectionBase *)>) {
58 Error SectionBase::removeSymbols(function_ref<bool(const Symbol &)>) {
62 Error SectionBase::initialize(SectionTableRef) { return Error::success(); }
63 void SectionBase::finalize() {}
64 void SectionBase::markSymbols() {}
65 void SectionBase::replaceSectionReferences(
66 const DenseMap<SectionBase *, SectionBase *> &) {}
67 void SectionBase::onRemove() {}
69 template <class ELFT> void ELFWriter<ELFT>::writeShdr(const SectionBase &Sec) {
346 static uint64_t sectionPhysicalAddr(const SectionBase *Sec) {
354 void IHexSectionWriterBase::writeSection(const SectionBase *Sec,
560 CompressedSection::CompressedSection(const SectionBase &Sec,
563 : SectionBase(Sec), CompressionType(CompressionType),
718 SectionBase *DefinedIn, uint64_t Value,
743 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) {
783 const DenseMap<SectionBase *, SectionBase *> &FromTo) {
785 if (SectionBase *To = FromTo.lookup(Sym->DefinedIn))
903 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) {
946 Expected<SectionBase *> Sec =
1028 const DenseMap<SectionBase *, SectionBase *> &FromTo) {
1030 if (SectionBase *To = FromTo.lookup(SecToApplyRel))
1048 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) {
1069 function_ref<bool(const SectionBase *)> ToRemove) {
1093 bool AllowBrokenLinks, function_ref<bool(const SectionBase *)> ToRemove) {
1123 const DenseMap<SectionBase *, SectionBase *> &FromTo) {
1124 for (SectionBase *&Sec : GroupMembers)
1125 if (SectionBase *To = FromTo.lookup(Sec))
1132 for (SectionBase *Sec : GroupMembers)
1140 Expected<SectionBase *> Sec =
1205 for (SectionBase *S : Sec.GroupMembers)
1219 static bool sectionWithinSegment(const SectionBase &Sec, const Segment &Seg) {
1306 for (SectionBase &Sec : Obj->sections())
1438 for (const SectionBase &Sec : Obj.sections()) {
1479 for (SectionBase &Sec : Obj.sections())
1554 Expected<SectionBase *> Sec = SecTable.getSection(
1584 SectionBase *DefSection = nullptr;
1615 Expected<SectionBase *> Sec = Obj.sections().getSection(
1632 Expected<SectionBase *> Sec = Obj.sections().getSection(
1685 Expected<SectionBase *> SectionTableRef::getSection(uint32_t Index,
1696 Expected<SectionBase *> BaseSec = getSection(Index, IndexErrMsg);
1707 Expected<SectionBase &> ELFBuilder<ELFT>::makeSection(const Elf_Shdr &Shdr) {
1799 Expected<SectionBase &> Sec = makeSection(Shdr);
1876 for (SectionBase &Sec : Obj.sections()) {
2109 for (SectionBase &Sec : Obj.sections())
2114 for (SectionBase &Sec : Obj.sections())
2133 SectionBase *Sec = it.first;
2192 bool AllowBrokenLinks, std::function<bool(const SectionBase &)> ToRemove) {
2222 std::unordered_set<const SectionBase *> RemoveSections;
2238 AllowBrokenLinks, [&RemoveSections](const SectionBase *Sec) {
2253 const DenseMap<SectionBase *, SectionBase *> &FromTo) {
2270 [=](const SectionBase &Sec) { return FromTo.count(&Sec) > 0; }))
2289 for (SectionBase &Sec : sections()) {
2364 std::vector<SectionBase *> OutOfSegmentSections;
2377 [](const SectionBase *Lhs, const SectionBase *Rhs) {
2394 std::vector<SectionBase *> Sections;
2402 [](const SectionBase *Lhs, const SectionBase *Rhs) {
2454 const SectionBase *FirstSec = Seg->firstSection();
2459 for (const SectionBase *Sec : Seg->Sections) {
2565 return Obj.removeSections(false, [&](const SectionBase &Sec) {
2585 for (SectionBase &Sec : Obj.sections())
2598 [](const SectionBase &Sec) { return Sec.HasSymbol; });
2619 [this](const SectionBase &Sec) {
2629 for (const SectionBase &Sec : Obj.sections())
2639 for (SectionBase &Sec : Obj.sections()) {
2653 for (SectionBase &Sec : Obj.sections())
2667 for (SectionBase &Sec : Obj.sections()) {
2687 SmallVector<const SectionBase *, 30> SectionsToWrite;
2688 for (const SectionBase &Sec : Obj.allocSections()) {
2697 [](const SectionBase *LHS, const SectionBase *RHS) {
2704 const SectionBase &Sec = *SectionsToWrite[i];
2730 for (SectionBase &Sec : Obj.allocSections()) {
2743 for (SectionBase &Sec : Obj.allocSections())
2758 Error ASCIIHexWriter::checkSection(const SectionBase &S) const {
2775 for (const SectionBase &S : Obj.sections()) {
2783 llvm::sort(Sections, [](const SectionBase *A, const SectionBase *B) {
2836 for (const SectionBase *Sec : Sections)
2850 for (const SectionBase *Sec : Sections)
2911 void SRECSectionWriterBase::writeSection(const SectionBase &S,
3029 for (const SectionBase *Sec : Sections)
3045 for (const SectionBase *S : Sections) {