Ejemplo n.º 1
0
section_iterator WasmObjectFile::section_end() const {
  DataRefImpl Ref;
  Ref.d.a = Sections.size();
  return section_iterator(SectionRef(Ref, this));
}
Ejemplo n.º 2
0
section_iterator WasmObjectFile::section_begin() const {
  DataRefImpl Ref;
  Ref.d.a = 0;
  return section_iterator(SectionRef(Ref, this));
}
Ejemplo n.º 3
0
ObjectFile::section_iterator MachOObjectFile::begin_sections() const {
  DataRefImpl DRI;
  DRI.d.a = DRI.d.b = 0;
  moveToNextSection(DRI);
  return section_iterator(SectionRef(DRI, this));
}
Ejemplo n.º 4
0
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));
}
Ejemplo n.º 5
0
SectionRef MachOObjectFile::getSectionNext(DataRefImpl DRI) const {
  DRI.d.b++;
  moveToNextSection(DRI);
  return SectionRef(DRI, this);
}