Lines Matching refs:Obj
69 static int DumpSectionData(MachOObject &Obj, unsigned Index, StringRef Name, in DumpSectionData() argument
99 Obj.ReadRelocationEntry(RelocationTableOffset, i, RE); in DumpSectionData()
114 StringRef Data = Obj.getData(Offset, Size); in DumpSectionData()
127 static int DumpSegmentCommand(MachOObject &Obj, in DumpSegmentCommand() argument
130 Obj.ReadSegmentLoadCommand(LCI, SLC); in DumpSegmentCommand()
144 Obj.ReadSection(LCI, i, Sect); in DumpSegmentCommand()
150 if ((Res = DumpSectionData(Obj, i, StringRef(Sect->Name, 16), in DumpSegmentCommand()
163 static int DumpSegment64Command(MachOObject &Obj, in DumpSegment64Command() argument
166 Obj.ReadSegment64LoadCommand(LCI, SLC); in DumpSegment64Command()
180 Obj.ReadSection64(LCI, i, Sect); in DumpSegment64Command()
186 if ((Res = DumpSectionData(Obj, i, StringRef(Sect->Name, 16), in DumpSegment64Command()
200 static void DumpSymbolTableEntryData(MachOObject &Obj, in DumpSymbolTableEntryData() argument
210 outs() << " ('_string', '" << Obj.getStringAtIndex(StringIndex) << "')\n"; in DumpSymbolTableEntryData()
214 static int DumpSymtabCommand(MachOObject &Obj, in DumpSymtabCommand() argument
217 Obj.ReadSymtabLoadCommand(LCI, SLC); in DumpSymtabCommand()
227 Obj.RegisterStringTable(*SLC); in DumpSymtabCommand()
231 outs().write_escaped(Obj.getStringTableData(), in DumpSymtabCommand()
238 if (Obj.is64Bit()) { in DumpSymtabCommand()
240 Obj.ReadSymbol64TableEntry(SLC->SymbolTableOffset, i, STE); in DumpSymtabCommand()
246 DumpSymbolTableEntryData(Obj, i, STE->StringIndex, STE->Type, in DumpSymtabCommand()
250 Obj.ReadSymbolTableEntry(SLC->SymbolTableOffset, i, STE); in DumpSymtabCommand()
256 DumpSymbolTableEntryData(Obj, i, STE->StringIndex, STE->Type, in DumpSymtabCommand()
265 static int DumpDysymtabCommand(MachOObject &Obj, in DumpDysymtabCommand() argument
268 Obj.ReadDysymtabLoadCommand(LCI, DLC); in DumpDysymtabCommand()
298 Obj.ReadIndirectSymbolTableEntry(*DLC, i, ISTE); in DumpDysymtabCommand()
313 static int DumpLinkeditDataCommand(MachOObject &Obj, in DumpLinkeditDataCommand() argument
316 Obj.ReadLinkeditDataLoadCommand(LCI, LLC); in DumpLinkeditDataCommand()
325 Obj.ReadULEB128s(LLC->DataOffset, Addresses); in DumpLinkeditDataCommand()
336 static int DumpLoadCommand(MachOObject &Obj, unsigned Index) { in DumpLoadCommand() argument
337 const MachOObject::LoadCommandInfo &LCI = Obj.getLoadCommandInfo(Index); in DumpLoadCommand()
345 Res = DumpSegmentCommand(Obj, LCI); in DumpLoadCommand()
348 Res = DumpSegment64Command(Obj, LCI); in DumpLoadCommand()
351 Res = DumpSymtabCommand(Obj, LCI); in DumpLoadCommand()
354 Res = DumpDysymtabCommand(Obj, LCI); in DumpLoadCommand()
359 Res = DumpLinkeditDataCommand(Obj, LCI); in DumpLoadCommand()