section_iterator WasmObjectFile::section_end() const { DataRefImpl Ref; Ref.d.a = Sections.size(); return section_iterator(SectionRef(Ref, this)); }
section_iterator WasmObjectFile::section_begin() const { DataRefImpl Ref; Ref.d.a = 0; return section_iterator(SectionRef(Ref, this)); }
ObjectFile::section_iterator MachOObjectFile::end_sections() const { DataRefImpl DRI; DRI.d.a = MachOObj->getHeader().NumLoadCommands; DRI.d.b = 0; return section_iterator(SectionRef(DRI, this)); }
section_iterator WasmObjectFile::getRelocatedSection(DataRefImpl Sec) const { llvm_unreachable("not yet implemented"); SectionRef Ref; return section_iterator(Ref); }
ObjectFile::section_iterator MachOObjectFile::begin_sections() const { DataRefImpl DRI; DRI.d.a = DRI.d.b = 0; moveToNextSection(DRI); return section_iterator(SectionRef(DRI, this)); }