Lines Matching refs:MachOObj

54 static const Target *GetTarget(const MachOObject *MachOObj) {  in GetTarget()  argument
57 switch (MachOObj->getHeader().CPUType) { in GetTarget()
127 MachOObject *MachOObj, raw_ostream &OS) { in DumpAddress() argument
132 StringRef bytes = MachOObj->getData(Sections[i].Offset, in DumpAddress()
215 MachOObject *MachOObj, in getSectionsAndSymbols() argument
222 const MachOObject::LoadCommandInfo &LCI = MachOObj->getLoadCommandInfo(i); in getSectionsAndSymbols()
225 MachOObj->ReadSegmentLoadCommand(LCI, SegmentLC); in getSectionsAndSymbols()
230 MachOObj->ReadSection(LCI, SectNum, Sect); in getSectionsAndSymbols()
236 MachOObj->ReadSegment64LoadCommand(LCI, Segment64LC); in getSectionsAndSymbols()
242 MachOObj->ReadSection64(LCI, SectNum, Sect64); in getSectionsAndSymbols()
249 MachOObj->ReadLinkeditDataLoadCommand(LCI, LLC); in getSectionsAndSymbols()
251 MachOObj->ReadULEB128s(LLC->DataOffset, FoundFns); in getSectionsAndSymbols()
257 if (MachOObj->is64Bit()) { in getSectionsAndSymbols()
259 MachOObj->ReadSymbol64TableEntry((*SymtabLC)->SymbolTableOffset, i, in getSectionsAndSymbols()
264 MachOObj->ReadSymbolTableEntry((*SymtabLC)->SymbolTableOffset, i, in getSectionsAndSymbols()
280 OwningPtr<MachOObject> MachOObj(MachOObject::LoadFromBuffer(Buff.take())); in DisassembleInputMachO() local
282 const Target *TheTarget = GetTarget(MachOObj.get()); in DisassembleInputMachO()
308 const macho::Header &Header = MachOObj->getHeader(); in DisassembleInputMachO()
313 const MachOObject::LoadCommandInfo &LCI = MachOObj->getLoadCommandInfo(i); in DisassembleInputMachO()
322 MachOObj->ReadSymtabLoadCommand(*SymtabLCI, SymtabLC); in DisassembleInputMachO()
323 MachOObj->RegisterStringTable(*SymtabLC); in DisassembleInputMachO()
329 getSectionsAndSymbols(Header, MachOObj.get(), &SymtabLC, Sections, Symbols, in DisassembleInputMachO()
347 MachOObject *DbgInfoObj = MachOObj.get(); in DisassembleInputMachO()
412 StringRef Bytes = MachOObj->getData(Sections[SectIdx].Offset, in DisassembleInputMachO()
421 MachOObj->ReadRelocationEntry(Sections[SectIdx].RelocTableOffset, j, RE); in DisassembleInputMachO()
449 outs() << MachOObj->getStringAtIndex(Symbols[SymIdx].StringIndex) in DisassembleInputMachO()
482 MachOObj->getStringAtIndex(Symbols[SymIdx].StringIndex), in DisassembleInputMachO()
582 << MachOObj->getStringAtIndex( in DisassembleInputMachO()
586 MachOObj.get(), outs()); in DisassembleInputMachO()
595 DumpAddress(targ, Sections, MachOObj.get(), outs()); in DisassembleInputMachO()