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::begin_sections() const { DataRefImpl DRI; DRI.d.a = DRI.d.b = 0; moveToNextSection(DRI); return section_iterator(SectionRef(DRI, 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)); }
SectionRef MachOObjectFile::getSectionNext(DataRefImpl DRI) const { DRI.d.b++; moveToNextSection(DRI); return SectionRef(DRI, this); }