Lines Matching refs:MachOObjectFile
42 static T getStruct(const MachOObjectFile *O, const char *P) { in getStruct()
66 getSegmentLoadCommandNumSections(const MachOObjectFile *O, in getSegmentLoadCommandNumSections()
67 const MachOObjectFile::LoadCommandInfo &L) { in getSegmentLoadCommandNumSections()
76 static bool isPageZeroSegment(const MachOObjectFile *O, in isPageZeroSegment()
77 const MachOObjectFile::LoadCommandInfo &L) { in isPageZeroSegment()
88 getSectionPtr(const MachOObjectFile *O, MachOObjectFile::LoadCommandInfo L, in getSectionPtr()
102 static const char *getPtr(const MachOObjectFile *O, size_t Offset) { in getPtr()
107 getSymbolTableEntryBase(const MachOObjectFile *O, DataRefImpl DRI) { in getSymbolTableEntryBase()
127 static unsigned getCPUType(const MachOObjectFile *O) { in getCPUType()
131 static void printRelocationTargetName(const MachOObjectFile *O, in printRelocationTargetName()
205 static bool getPlainRelocationPCRel(const MachOObjectFile *O, in getPlainRelocationPCRel()
213 getScatteredRelocationPCRel(const MachOObjectFile *O, in getScatteredRelocationPCRel()
218 static unsigned getPlainRelocationLength(const MachOObjectFile *O, in getPlainRelocationLength()
230 static unsigned getPlainRelocationType(const MachOObjectFile *O, in getPlainRelocationType()
237 static uint32_t getSectionFlags(const MachOObjectFile *O, in getSectionFlags()
247 MachOObjectFile::MachOObjectFile(MemoryBufferRef Object, bool IsLittleEndian, in MachOObjectFile() function in MachOObjectFile
261 MachOObjectFile::LoadCommandInfo Load = getFirstLoadCommandInfo(); in MachOObjectFile()
335 void MachOObjectFile::moveSymbolNext(DataRefImpl &Symb) const { in moveSymbolNext()
342 std::error_code MachOObjectFile::getSymbolName(DataRefImpl Symb, in getSymbolName()
354 unsigned MachOObjectFile::getSectionType(SectionRef Sec) const { in getSectionType()
362 std::error_code MachOObjectFile::getIndirectName(DataRefImpl Symb, in getIndirectName()
384 std::error_code MachOObjectFile::getSymbolAddress(DataRefImpl Symb, in getSymbolAddress()
404 std::error_code MachOObjectFile::getSymbolAlignment(DataRefImpl DRI, in getSymbolAlignment()
416 std::error_code MachOObjectFile::getSymbolSize(DataRefImpl DRI, in getSymbolSize()
464 std::error_code MachOObjectFile::getSymbolType(DataRefImpl Symb, in getSymbolType()
488 uint32_t MachOObjectFile::getSymbolFlags(DataRefImpl DRI) const { in getSymbolFlags()
530 std::error_code MachOObjectFile::getSymbolSection(DataRefImpl Symb, in getSymbolSection()
546 void MachOObjectFile::moveSectionNext(DataRefImpl &Sec) const { in moveSectionNext()
550 std::error_code MachOObjectFile::getSectionName(DataRefImpl Sec, in getSectionName()
557 uint64_t MachOObjectFile::getSectionAddress(DataRefImpl Sec) const { in getSectionAddress()
563 uint64_t MachOObjectFile::getSectionSize(DataRefImpl Sec) const { in getSectionSize()
569 std::error_code MachOObjectFile::getSectionContents(DataRefImpl Sec, in getSectionContents()
588 uint64_t MachOObjectFile::getSectionAlignment(DataRefImpl Sec) const { in getSectionAlignment()
601 bool MachOObjectFile::isSectionText(DataRefImpl Sec) const { in isSectionText()
606 bool MachOObjectFile::isSectionData(DataRefImpl Sec) const { in isSectionData()
614 bool MachOObjectFile::isSectionBSS(DataRefImpl Sec) const { in isSectionBSS()
622 bool MachOObjectFile::isSectionVirtual(DataRefImpl Sec) const { in isSectionVirtual()
627 bool MachOObjectFile::sectionContainsSymbol(DataRefImpl Sec, in sectionContainsSymbol()
643 relocation_iterator MachOObjectFile::section_rel_begin(DataRefImpl Sec) const { in section_rel_begin()
651 MachOObjectFile::section_rel_end(DataRefImpl Sec) const { in section_rel_end()
667 void MachOObjectFile::moveRelocationNext(DataRefImpl &Rel) const { in moveRelocationNext()
671 std::error_code MachOObjectFile::getRelocationAddress(DataRefImpl Rel, in getRelocationAddress()
683 std::error_code MachOObjectFile::getRelocationOffset(DataRefImpl Rel, in getRelocationOffset()
693 MachOObjectFile::getRelocationSymbol(DataRefImpl Rel) const { in getRelocationSymbol()
713 std::error_code MachOObjectFile::getRelocationType(DataRefImpl Rel, in getRelocationType()
721 MachOObjectFile::getRelocationTypeName(DataRefImpl Rel, in getRelocationTypeName()
833 MachOObjectFile::getRelocationValueString(DataRefImpl Rel, in getRelocationValueString()
1008 std::error_code MachOObjectFile::getRelocationHidden(DataRefImpl Rel, in getRelocationHidden()
1064 StringRef MachOObjectFile::guessLibraryShortName(StringRef Name, in guessLibraryShortName()
1183 std::error_code MachOObjectFile::getLibraryShortNameByIndex(unsigned Index, in getLibraryShortNameByIndex()
1214 basic_symbol_iterator MachOObjectFile::symbol_begin_impl() const { in symbol_begin_impl()
1218 basic_symbol_iterator MachOObjectFile::symbol_end_impl() const { in symbol_end_impl()
1233 basic_symbol_iterator MachOObjectFile::getSymbolByIndex(unsigned Index) const { in getSymbolByIndex()
1248 section_iterator MachOObjectFile::section_begin() const { in section_begin()
1253 section_iterator MachOObjectFile::section_end() const { in section_end()
1259 uint8_t MachOObjectFile::getBytesInAddress() const { in getBytesInAddress()
1263 StringRef MachOObjectFile::getFileFormatName() const { in getFileFormatName()
1290 Triple::ArchType MachOObjectFile::getArch(uint32_t CPUType) { in getArch()
1309 Triple MachOObjectFile::getArch(uint32_t CPUType, uint32_t CPUSubType, in getArch()
1388 Triple MachOObjectFile::getThumbArch(uint32_t CPUType, uint32_t CPUSubType, in getThumbArch()
1430 Triple MachOObjectFile::getArch(uint32_t CPUType, uint32_t CPUSubType, in getArch()
1433 Triple T = MachOObjectFile::getArch(CPUType, CPUSubType, McpuDefault); in getArch()
1434 *ThumbTriple = MachOObjectFile::getThumbArch(CPUType, CPUSubType, in getArch()
1439 Triple MachOObjectFile::getHostArch() { in getHostArch()
1443 bool MachOObjectFile::isValidArch(StringRef ArchFlag) { in isValidArch()
1463 unsigned MachOObjectFile::getArch() const { in getArch()
1467 Triple MachOObjectFile::getArch(const char **McpuDefault, in getArch()
1473 T = MachOObjectFile::getArch(H_64.cputype, H_64.cpusubtype, McpuDefault); in getArch()
1474 *ThumbTriple = MachOObjectFile::getThumbArch(H_64.cputype, H_64.cpusubtype, in getArch()
1479 T = MachOObjectFile::getArch(H.cputype, H.cpusubtype, McpuDefault); in getArch()
1480 *ThumbTriple = MachOObjectFile::getThumbArch(H.cputype, H.cpusubtype, in getArch()
1486 relocation_iterator MachOObjectFile::section_rel_begin(unsigned Index) const { in section_rel_begin()
1492 relocation_iterator MachOObjectFile::section_rel_end(unsigned Index) const { in section_rel_end()
1498 dice_iterator MachOObjectFile::begin_dices() const { in begin_dices()
1508 dice_iterator MachOObjectFile::end_dices() const { in end_dices()
1680 MachOObjectFile::exports(ArrayRef<uint8_t> Trie) { in exports()
1694 iterator_range<export_iterator> MachOObjectFile::exports() const { in exports()
1855 MachOObjectFile::rebaseTable(ArrayRef<uint8_t> Opcodes, bool is64) { in rebaseTable()
1866 iterator_range<rebase_iterator> MachOObjectFile::rebaseTable() const { in rebaseTable()
2109 MachOObjectFile::bindTable(ArrayRef<uint8_t> Opcodes, bool is64, in bindTable()
2121 iterator_range<bind_iterator> MachOObjectFile::bindTable() const { in bindTable()
2126 iterator_range<bind_iterator> MachOObjectFile::lazyBindTable() const { in lazyBindTable()
2131 iterator_range<bind_iterator> MachOObjectFile::weakBindTable() const { in weakBindTable()
2137 MachOObjectFile::getSectionFinalSegmentName(DataRefImpl Sec) const { in getSectionFinalSegmentName()
2143 MachOObjectFile::getSectionRawName(DataRefImpl Sec) const { in getSectionRawName()
2152 MachOObjectFile::getSectionRawFinalSegmentName(DataRefImpl Sec) const { in getSectionRawFinalSegmentName()
2161 MachOObjectFile::isRelocationScattered(const MachO::any_relocation_info &RE) in isRelocationScattered()
2168 unsigned MachOObjectFile::getPlainRelocationSymbolNum( in getPlainRelocationSymbolNum()
2175 bool MachOObjectFile::getPlainRelocationExternal( in getPlainRelocationExternal()
2182 bool MachOObjectFile::getScatteredRelocationScattered( in getScatteredRelocationScattered()
2187 uint32_t MachOObjectFile::getScatteredRelocationValue( in getScatteredRelocationValue()
2192 uint32_t MachOObjectFile::getScatteredRelocationType( in getScatteredRelocationType()
2197 unsigned MachOObjectFile::getAnyRelocationAddress( in getAnyRelocationAddress()
2204 unsigned MachOObjectFile::getAnyRelocationPCRel( in getAnyRelocationPCRel()
2211 unsigned MachOObjectFile::getAnyRelocationLength( in getAnyRelocationLength()
2219 MachOObjectFile::getAnyRelocationType( in getAnyRelocationType()
2227 MachOObjectFile::getRelocationSection( in getRelocationSection()
2237 MachOObjectFile::LoadCommandInfo
2238 MachOObjectFile::getFirstLoadCommandInfo() const { in getFirstLoadCommandInfo()
2239 MachOObjectFile::LoadCommandInfo Load; in getFirstLoadCommandInfo()
2250 MachOObjectFile::LoadCommandInfo
2251 MachOObjectFile::getNextLoadCommandInfo(const LoadCommandInfo &L) const { in getNextLoadCommandInfo()
2252 MachOObjectFile::LoadCommandInfo Next; in getNextLoadCommandInfo()
2260 MachO::section MachOObjectFile::getSection(DataRefImpl DRI) const { in getSection()
2267 MachO::section_64 MachOObjectFile::getSection64(DataRefImpl DRI) const { in getSection64()
2274 MachO::section MachOObjectFile::getSection(const LoadCommandInfo &L, in getSection()
2280 MachO::section_64 MachOObjectFile::getSection64(const LoadCommandInfo &L, in getSection64()
2287 MachOObjectFile::getSymbolTableEntry(DataRefImpl DRI) const { in getSymbolTableEntry()
2293 MachOObjectFile::getSymbol64TableEntry(DataRefImpl DRI) const { in getSymbol64TableEntry()
2299 MachOObjectFile::getLinkeditDataLoadCommand(const LoadCommandInfo &L) const { in getLinkeditDataLoadCommand()
2304 MachOObjectFile::getSegmentLoadCommand(const LoadCommandInfo &L) const { in getSegmentLoadCommand()
2309 MachOObjectFile::getSegment64LoadCommand(const LoadCommandInfo &L) const { in getSegment64LoadCommand()
2314 MachOObjectFile::getLinkerOptionLoadCommand(const LoadCommandInfo &L) const { in getLinkerOptionLoadCommand()
2319 MachOObjectFile::getVersionMinLoadCommand(const LoadCommandInfo &L) const { in getVersionMinLoadCommand()
2324 MachOObjectFile::getDylibIDLoadCommand(const LoadCommandInfo &L) const { in getDylibIDLoadCommand()
2329 MachOObjectFile::getDyldInfoLoadCommand(const LoadCommandInfo &L) const { in getDyldInfoLoadCommand()
2334 MachOObjectFile::getDylinkerCommand(const LoadCommandInfo &L) const { in getDylinkerCommand()
2339 MachOObjectFile::getUuidCommand(const LoadCommandInfo &L) const { in getUuidCommand()
2344 MachOObjectFile::getRpathCommand(const LoadCommandInfo &L) const { in getRpathCommand()
2349 MachOObjectFile::getSourceVersionCommand(const LoadCommandInfo &L) const { in getSourceVersionCommand()
2354 MachOObjectFile::getEntryPointCommand(const LoadCommandInfo &L) const { in getEntryPointCommand()
2359 MachOObjectFile::getEncryptionInfoCommand(const LoadCommandInfo &L) const { in getEncryptionInfoCommand()
2364 MachOObjectFile::getEncryptionInfoCommand64(const LoadCommandInfo &L) const { in getEncryptionInfoCommand64()
2369 MachOObjectFile::getSubFrameworkCommand(const LoadCommandInfo &L) const { in getSubFrameworkCommand()
2374 MachOObjectFile::getSubUmbrellaCommand(const LoadCommandInfo &L) const { in getSubUmbrellaCommand()
2379 MachOObjectFile::getSubLibraryCommand(const LoadCommandInfo &L) const { in getSubLibraryCommand()
2384 MachOObjectFile::getSubClientCommand(const LoadCommandInfo &L) const { in getSubClientCommand()
2389 MachOObjectFile::getRoutinesCommand(const LoadCommandInfo &L) const { in getRoutinesCommand()
2394 MachOObjectFile::getRoutinesCommand64(const LoadCommandInfo &L) const { in getRoutinesCommand64()
2399 MachOObjectFile::getThreadCommand(const LoadCommandInfo &L) const { in getThreadCommand()
2404 MachOObjectFile::getRelocation(DataRefImpl Rel) const { in getRelocation()
2423 MachOObjectFile::getDice(DataRefImpl Rel) const { in getDice()
2428 MachO::mach_header MachOObjectFile::getHeader() const { in getHeader()
2432 MachO::mach_header_64 MachOObjectFile::getHeader64() const { in getHeader64()
2436 uint32_t MachOObjectFile::getIndirectSymbolTableEntry( in getIndirectSymbolTableEntry()
2444 MachOObjectFile::getDataInCodeTableEntry(uint32_t DataOffset, in getDataInCodeTableEntry()
2450 MachO::symtab_command MachOObjectFile::getSymtabLoadCommand() const { in getSymtabLoadCommand()
2465 MachO::dysymtab_command MachOObjectFile::getDysymtabLoadCommand() const { in getDysymtabLoadCommand()
2495 MachOObjectFile::getDataInCodeLoadCommand() const { in getDataInCodeLoadCommand()
2509 MachOObjectFile::getLinkOptHintsLoadCommand() const { in getLinkOptHintsLoadCommand()
2523 ArrayRef<uint8_t> MachOObjectFile::getDyldInfoRebaseOpcodes() const { in getDyldInfoRebaseOpcodes()
2534 ArrayRef<uint8_t> MachOObjectFile::getDyldInfoBindOpcodes() const { in getDyldInfoBindOpcodes()
2545 ArrayRef<uint8_t> MachOObjectFile::getDyldInfoWeakBindOpcodes() const { in getDyldInfoWeakBindOpcodes()
2556 ArrayRef<uint8_t> MachOObjectFile::getDyldInfoLazyBindOpcodes() const { in getDyldInfoLazyBindOpcodes()
2567 ArrayRef<uint8_t> MachOObjectFile::getDyldInfoExportsTrie() const { in getDyldInfoExportsTrie()
2578 ArrayRef<uint8_t> MachOObjectFile::getUuid() const { in getUuid()
2586 StringRef MachOObjectFile::getStringTableData() const { in getStringTableData()
2591 bool MachOObjectFile::is64Bit() const { in is64Bit()
2596 void MachOObjectFile::ReadULEB128s(uint64_t Index, in ReadULEB128s()
2608 bool MachOObjectFile::isRelocatableObject() const { in isRelocatableObject()
2612 ErrorOr<std::unique_ptr<MachOObjectFile>>
2616 std::unique_ptr<MachOObjectFile> Ret; in createMachOObjectFile()
2618 Ret.reset(new MachOObjectFile(Buffer, false, false, EC)); in createMachOObjectFile()
2620 Ret.reset(new MachOObjectFile(Buffer, true, false, EC)); in createMachOObjectFile()
2622 Ret.reset(new MachOObjectFile(Buffer, false, true, EC)); in createMachOObjectFile()
2624 Ret.reset(new MachOObjectFile(Buffer, true, true, EC)); in createMachOObjectFile()