Lines Matching defs:Obj
30 MachODumper(const MachOObjectFile *Obj, StreamWriter& Writer)
32 , Obj(Obj) { }
46 void printRelocation(const MachOObjectFile *Obj,
49 void printSections(const MachOObjectFile *Obj);
51 const MachOObjectFile *Obj;
59 error_code createMachODumper(const object::ObjectFile *Obj,
62 const MachOObjectFile *MachOObj = dyn_cast<MachOObjectFile>(Obj);
165 static void getSection(const MachOObjectFile *Obj,
168 if (!Obj->is64Bit()) {
169 macho::Section Sect = Obj->getSection(Sec);
181 macho::Section64 Sect = Obj->getSection64(Sec);
194 static void getSymbol(const MachOObjectFile *Obj,
197 if (!Obj->is64Bit()) {
198 macho::SymbolTableEntry Entry = Obj->getSymbolTableEntry(DRI);
206 macho::Symbol64TableEntry Entry = Obj->getSymbol64TableEntry(DRI);
219 return printSections(Obj);
222 void MachODumper::printSections(const MachOObjectFile *Obj) {
227 for (section_iterator SecI = Obj->begin_sections(),
228 SecE = Obj->end_sections();
235 getSection(Obj, SecI->getRawDataRefImpl(), Section);
242 ArrayRef<char> RawName = Obj->getSectionRawName(DR);
243 StringRef SegmentName = Obj->getSectionFinalSegmentName(DR);
244 ArrayRef<char> RawSegmentName = Obj->getSectionRawFinalSegmentName(DR);
276 for (symbol_iterator SymI = Obj->begin_symbols(),
277 SymE = Obj->end_symbols();
302 for (section_iterator SecI = Obj->begin_sections(),
303 SecE = Obj->end_sections();
335 return printRelocation(Obj, SecI, RelI);
338 void MachODumper::printRelocation(const MachOObjectFile *Obj,
347 if (Symbol != Obj->end_symbols() &&
352 macho::RelocationEntry RE = Obj->getRelocation(DR);
353 bool IsScattered = Obj->isRelocationScattered(RE);
358 W.printNumber("PCRel", Obj->getAnyRelocationPCRel(RE));
359 W.printNumber("Length", Obj->getAnyRelocationLength(RE));
363 W.printNumber("Extern", Obj->getPlainRelocationExternal(RE));
364 W.printNumber("Type", RelocName, Obj->getAnyRelocationType(RE));
370 << " " << Obj->getAnyRelocationPCRel(RE)
371 << " " << Obj->getAnyRelocationLength(RE);
375 OS << " " << Obj->getPlainRelocationExternal(RE);
387 for (symbol_iterator SymI = Obj->begin_symbols(),
388 SymE = Obj->end_symbols();
408 getSymbol(Obj, SymI->getRawDataRefImpl(), Symbol);
411 section_iterator SecI(Obj->end_sections());
413 SecI != Obj->end_sections())