Lines Matching refs:MachOObj

33       MachOObj(MOO),  in MachOObjectFile()
38 uint32_t LoadCommandCount = MachOObj->getHeader().NumLoadCommands; in MachOObjectFile()
50 MachOObject *MachOObj = MachOObject::LoadFromBuffer(Buffer, &Err); in createMachOObjectFile() local
51 if (!MachOObj) in createMachOObjectFile()
53 return new MachOObjectFile(Buffer, MachOObj, ec); in createMachOObjectFile()
59 uint32_t LoadCommandCount = MachOObj->getHeader().NumLoadCommands; in moveToNextSymbol()
61 LoadCommandInfo LCI = MachOObj->getLoadCommandInfo(DRI.d.a); in moveToNextSymbol()
64 MachOObj->ReadSymtabLoadCommand(LCI, SymtabLoadCmd); in moveToNextSymbol()
77 LoadCommandInfo LCI = MachOObj->getLoadCommandInfo(DRI.d.a); in getSymbolTableEntry()
78 MachOObj->ReadSymtabLoadCommand(LCI, SymtabLoadCmd); in getSymbolTableEntry()
81 MachOObj->RegisterStringTable(*SymtabLoadCmd); in getSymbolTableEntry()
85 MachOObj->ReadSymbolTableEntry(SymtabLoadCmd->SymbolTableOffset, DRI.d.b, in getSymbolTableEntry()
92 LoadCommandInfo LCI = MachOObj->getLoadCommandInfo(DRI.d.a); in getSymbol64TableEntry()
93 MachOObj->ReadSymtabLoadCommand(LCI, SymtabLoadCmd); in getSymbol64TableEntry()
96 MachOObj->RegisterStringTable(*SymtabLoadCmd); in getSymbol64TableEntry()
100 MachOObj->ReadSymbol64TableEntry(SymtabLoadCmd->SymbolTableOffset, DRI.d.b, in getSymbol64TableEntry()
115 if (MachOObj->is64Bit()) { in getSymbolName()
118 Result = MachOObj->getStringAtIndex(Entry->StringIndex); in getSymbolName()
122 Result = MachOObj->getStringAtIndex(Entry->StringIndex); in getSymbolName()
131 if (MachOObj->is64Bit()) { in getSymbolOffset()
150 if (MachOObj->is64Bit()) { in getSymbolAddress()
171 if (MachOObj->is64Bit()) { in getSymbolNMTypeChar()
205 if (MachOObj->is64Bit()) { in isSymbolInternal()
219 if (MachOObj->is64Bit()) { in isSymbolGlobal()
234 if (MachOObj->is64Bit()) { in getSymbolType()
271 DRI.d.a = MachOObj->getHeader().NumLoadCommands; in end_symbols()
280 uint32_t LoadCommandCount = MachOObj->getHeader().NumLoadCommands; in moveToNextSection()
282 LoadCommandInfo LCI = MachOObj->getLoadCommandInfo(DRI.d.a); in moveToNextSection()
285 MachOObj->ReadSegmentLoadCommand(LCI, SegmentLoadCmd); in moveToNextSection()
290 MachOObj->ReadSegment64LoadCommand(LCI, Segment64LoadCmd); in moveToNextSection()
312 LoadCommandInfo LCI = MachOObj->getLoadCommandInfo(DRI.d.a); in getSection()
313 MachOObj->ReadSegmentLoadCommand(LCI, SLC); in getSection()
314 MachOObj->ReadSection(LCI, DRI.d.b, Res); in getSection()
328 LoadCommandInfo LCI = MachOObj->getLoadCommandInfo(DRI.d.a); in getSection64()
329 MachOObj->ReadSegment64LoadCommand(LCI, SLC); in getSection64()
330 MachOObj->ReadSection64(LCI, DRI.d.b, Res); in getSection64()
333 static bool is64BitLoadCommand(const MachOObject *MachOObj, DataRefImpl DRI) { in is64BitLoadCommand() argument
334 LoadCommandInfo LCI = MachOObj->getLoadCommandInfo(DRI.d.a); in is64BitLoadCommand()
345 if (is64BitLoadCommand(MachOObj, DRI)) { in getSectionName()
347 LoadCommandInfo LCI = MachOObj->getLoadCommandInfo(DRI.d.a); in getSectionName()
348 MachOObj->ReadSegment64LoadCommand(LCI, SLC); in getSectionName()
350 MachOObj->ReadSection64(LCI, DRI.d.b, Sect); in getSectionName()
357 LoadCommandInfo LCI = MachOObj->getLoadCommandInfo(DRI.d.a); in getSectionName()
358 MachOObj->ReadSegmentLoadCommand(LCI, SLC); in getSectionName()
360 MachOObj->ReadSection(LCI, DRI.d.b, Sect); in getSectionName()
372 if (is64BitLoadCommand(MachOObj, DRI)) { in getSectionAddress()
386 if (is64BitLoadCommand(MachOObj, DRI)) { in getSectionSize()
400 if (is64BitLoadCommand(MachOObj, DRI)) { in getSectionContents()
403 Result = MachOObj->getData(Sect->Offset, Sect->Size); in getSectionContents()
407 Result = MachOObj->getData(Sect->Offset, Sect->Size); in getSectionContents()
414 if (is64BitLoadCommand(MachOObj, DRI)) { in getSectionAlignment()
428 if (is64BitLoadCommand(MachOObj, DRI)) { in isSectionText()
469 if (MachOObj->is64Bit()) { in sectionContainsSymbol()
492 if (is64BitLoadCommand(MachOObj, Sec)) { in getSectionRelEnd()
516 DRI.d.a = MachOObj->getHeader().NumLoadCommands; in end_sections()
527 if (MachOObj->is64Bit()) { in getRelocation()
536 MachOObj->ReadRelocationEntry(relOffset, Rel.d.a, Res); in getRelocation()
547 if (MachOObj->is64Bit()) { in getRelocationAddress()
575 assert(Sym.d.a < MachOObj->getHeader().NumLoadCommands && in getRelocationSymbol()
601 if (MachOObj->is64Bit()) { in getRelocationAdditionalInfo()
622 return MachOObj->is64Bit() ? 8 : 4; in getBytesInAddress()
626 if (!MachOObj->is64Bit()) { in getFileFormatName()
627 switch (MachOObj->getHeader().CPUType) { in getFileFormatName()
635 assert((MachOObj->getHeader().CPUType & llvm::MachO::CPUArchABI64) == 0 && in getFileFormatName()
641 switch (MachOObj->getHeader().CPUType) { in getFileFormatName()
647 assert((MachOObj->getHeader().CPUType & llvm::MachO::CPUArchABI64) == 1 && in getFileFormatName()
654 switch (MachOObj->getHeader().CPUType) { in getArch()