Home
last modified time | relevance | path

Searched refs:MachOObjectFile (Results 1 – 25 of 35) sorted by relevance

12

/external/llvm/lib/Object/
DMachOObjectFile.cpp50 static T getStruct(const MachOObjectFile *O, const char *P) { in getStruct()
63 static Expected<T> getStructOrErr(const MachOObjectFile *O, const char *P) { in getStructOrErr()
76 getSectionPtr(const MachOObjectFile *O, MachOObjectFile::LoadCommandInfo L, in getSectionPtr()
90 static const char *getPtr(const MachOObjectFile *O, size_t Offset) { in getPtr()
95 getSymbolTableEntryBase(const MachOObjectFile *O, DataRefImpl DRI) { in getSymbolTableEntryBase()
115 static unsigned getCPUType(const MachOObjectFile *O) { in getCPUType()
129 static bool getPlainRelocationPCRel(const MachOObjectFile *O, in getPlainRelocationPCRel()
137 getScatteredRelocationPCRel(const MachOObjectFile *O, in getScatteredRelocationPCRel()
142 static unsigned getPlainRelocationLength(const MachOObjectFile *O, in getPlainRelocationLength()
154 static unsigned getPlainRelocationType(const MachOObjectFile *O, in getPlainRelocationType()
[all …]
DSymbolSize.cpp35 if (auto *M = dyn_cast<MachOObjectFile>(&O)) in getSectionID()
41 if (auto *M = dyn_cast<MachOObjectFile>(&O)) in getSymbolSectionID()
DMachOUniversal.cpp68 Expected<std::unique_ptr<MachOObjectFile>>
148 Expected<std::unique_ptr<MachOObjectFile>>
DCMakeLists.txt10 MachOObjectFile.cpp
/external/swiftshader/third_party/LLVM/lib/Object/
DMachOObjectFile.cpp30 MachOObjectFile::MachOObjectFile(MemoryBuffer *Object, MachOObject *MOO, in MachOObjectFile() function in llvm::object::MachOObjectFile
53 return new MachOObjectFile(Buffer, MachOObj, ec); in createMachOObjectFile()
58 void MachOObjectFile::moveToNextSymbol(DataRefImpl &DRI) const { in moveToNextSymbol()
74 void MachOObjectFile::getSymbolTableEntry(DataRefImpl DRI, in getSymbolTableEntry()
89 void MachOObjectFile::getSymbol64TableEntry(DataRefImpl DRI, in getSymbol64TableEntry()
105 error_code MachOObjectFile::getSymbolNext(DataRefImpl DRI, in getSymbolNext()
113 error_code MachOObjectFile::getSymbolName(DataRefImpl DRI, in getSymbolName()
127 error_code MachOObjectFile::getSymbolOffset(DataRefImpl DRI, in getSymbolOffset()
148 error_code MachOObjectFile::getSymbolAddress(DataRefImpl DRI, in getSymbolAddress()
162 error_code MachOObjectFile::getSymbolSize(DataRefImpl DRI, in getSymbolSize()
[all …]
/external/llvm/tools/llvm-size/
Dllvm-size.cpp204 static void printDarwinSectionSizes(MachOObjectFile *MachO) { in printDarwinSectionSizes()
279 static void printDarwinSegmentSizes(MachOObjectFile *MachO) { in printDarwinSegmentSizes()
362 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(Obj); in printObjectSectionSizes()
488 if (isa<MachOObjectFile>(o) && !ArchAll && ArchFlags.size() != 0) { in checkMachOAndArchFlags()
489 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o); in checkMachOAndArchFlags()
495 H_64 = MachO->MachOObjectFile::getHeader64(); in checkMachOAndArchFlags()
496 T = MachOObjectFile::getArchTriple(H_64.cputype, H_64.cpusubtype); in checkMachOAndArchFlags()
498 H = MachO->MachOObjectFile::getHeader(); in checkMachOAndArchFlags()
499 T = MachOObjectFile::getArchTriple(H.cputype, H.cpusubtype); in checkMachOAndArchFlags()
539 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o); in printFileSectionSizes()
[all …]
/external/llvm/tools/llvm-objdump/
Dllvm-objdump.h23 class MachOObjectFile; variable
69 void printMachOUnwindInfo(const object::MachOObjectFile* o);
70 void printMachOExportsTrie(const object::MachOObjectFile* o);
71 void printMachORebaseTable(const object::MachOObjectFile* o);
72 void printMachOBindTable(const object::MachOObjectFile* o);
73 void printMachOLazyBindTable(const object::MachOObjectFile* o);
74 void printMachOWeakBindTable(const object::MachOObjectFile* o);
Dllvm-objdump.cpp644 static void printRelocationTargetName(const MachOObjectFile *O, in printRelocationTargetName()
719 static std::error_code getRelocationValueString(const MachOObjectFile *Obj, in getRelocationValueString()
904 auto *MachO = cast<MachOObjectFile>(Obj); in getRelocationValueString()
913 auto *MachO = dyn_cast<MachOObjectFile>(Obj); in getHidden()
1103 if (const MachOObjectFile *MachO = dyn_cast<const MachOObjectFile>(Obj)) { in DisassembleObject()
1462 if (const MachOObjectFile *MachO = in PrintSymbolTable()
1463 dyn_cast<const MachOObjectFile>(o)) { in PrintSymbolTable()
1493 } else if (const MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o)) in PrintUnwindInfo()
1505 if (const MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o)) in printExportsTrie()
1516 if (const MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o)) in printRebaseTable()
[all …]
DMachODump.cpp148 static const Target *GetTarget(const MachOObjectFile *MachOObj, in GetTarget()
294 static void getSectionsAndSymbols(MachOObjectFile *MachOObj, in getSectionsAndSymbols()
338 static void PrintIndirectSymbolTable(MachOObjectFile *O, bool verbose, in PrintIndirectSymbolTable()
402 static void PrintIndirectSymbols(MachOObjectFile *O, bool verbose) { in PrintIndirectSymbols()
464 static void PrintDataInCodeTable(MachOObjectFile *O, bool verbose) { in PrintDataInCodeTable()
506 static void PrintLinkOptHints(MachOObjectFile *O) { in PrintLinkOptHints()
563 static void PrintDylibs(MachOObjectFile *O, bool JustId) { in PrintDylibs()
613 static void CreateSymbolAddressMap(MachOObjectFile *O, in CreateSymbolAddressMap()
665 static void DumpCstringSection(MachOObjectFile *O, const char *sect, in DumpCstringSection()
698 static void DumpLiteral4Section(MachOObjectFile *O, const char *sect, in DumpLiteral4Section()
[all …]
/external/llvm/tools/dsymutil/
DMachODebugMapParser.cpp65 std::unique_ptr<DebugMap> parseOneBinary(const MachOObjectFile &MainBinary,
71 void loadMainBinarySymbols(const MachOObjectFile &MainBinary);
72 void loadCurrentObjectFileSymbols(const object::MachOObjectFile &Obj);
95 void dumpOneBinaryStab(const MachOObjectFile &MainBinary,
121 CurrentObjectHolder.GetFilesAs<MachOObjectFile>(Path, Timestamp); in switchToNewDebugMapObject()
129 CurrentObjectHolder.GetAs<MachOObjectFile>(Result->getTriple()); in switchToNewDebugMapObject()
139 static std::string getArchName(const object::MachOObjectFile &Obj) { in getArchName()
145 MachODebugMapParser::parseOneBinary(const MachOObjectFile &MainBinary, in parseOneBinary()
266 void MachODebugMapParser::dumpOneBinaryStab(const MachOObjectFile &MainBinary, in dumpOneBinaryStab()
306 MainBinaryHolder.GetFilesAs<MachOObjectFile>(BinaryPath); in dumpStab()
[all …]
DMachOUtils.cpp125 static void iterateOnSegments(const object::MachOObjectFile &Obj, in iterateOnSegments()
177 static unsigned transferSymbols(const object::MachOObjectFile &Obj, in transferSymbols()
204 getSection(const object::MachOObjectFile &Obj, in getSection()
206 const object::MachOObjectFile::LoadCommandInfo &LCI, unsigned Idx) { in getSection()
211 getSection(const object::MachOObjectFile &Obj, in getSection()
213 const object::MachOObjectFile::LoadCommandInfo &LCI, unsigned Idx) { in getSection()
227 const object::MachOObjectFile::LoadCommandInfo &LCI, SegmentTy Segment, in transferSegmentAndSections()
228 const object::MachOObjectFile &Obj, MCObjectWriter &Writer, in transferSegmentAndSections()
293 static bool isExecutable(const object::MachOObjectFile &Obj) { in isExecutable()
300 static bool hasLinkEditSegment(const object::MachOObjectFile &Obj) { in hasLinkEditSegment()
[all …]
/external/llvm/tools/llvm-readobj/
DMachODumper.cpp31 MachODumper(const MachOObjectFile *Obj, ScopedPrinter &Writer) in MachODumper()
58 void printRelocation(const MachOObjectFile *Obj, const RelocationRef &Reloc);
60 void printSections(const MachOObjectFile *Obj);
62 const MachOObjectFile *Obj;
73 const MachOObjectFile *MachOObj = dyn_cast<MachOObjectFile>(Obj); in createMachODumper()
304 static void getSection(const MachOObjectFile *Obj, in getSection()
333 static void getSegment(const MachOObjectFile *Obj, in getSegment()
334 const MachOObjectFile::LoadCommandInfo &L, in getSegment()
365 static void getSymbol(const MachOObjectFile *Obj, in getSymbol()
433 void MachODumper::printSections(const MachOObjectFile *Obj) { in printSections()
[all …]
/external/llvm/tools/llvm-nm/
Dllvm-nm.cpp277 if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj)) in isSymbolList64Bit()
305 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); in darwinPrintSymbol()
331 H_64 = MachO->MachOObjectFile::getHeader64(); in darwinPrintSymbol()
341 H = MachO->MachOObjectFile::getHeader(); in darwinPrintSymbol()
568 static void darwinPrintStab(MachOObjectFile *MachO, SymbolListT::iterator I) { in darwinPrintStab()
676 if ((JustSymbolName || (UndefinedOnly && isa<MachOObjectFile>(Obj) && in sortAndPrintSymbolList()
709 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); in sortAndPrintSymbolList()
842 static char getSymbolNMTypeChar(MachOObjectFile &Obj, basic_symbol_iterator I) { in getSymbolNMTypeChar()
898 if ((Symflags & object::SymbolRef::SF_Weak) && !isa<MachOObjectFile>(Obj)) { in getNMTypeChar()
920 else if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj)) in getNMTypeChar()
[all …]
/external/llvm/tools/obj2yaml/
Dmacho2yaml.cpp26 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd);
28 const object::MachOObjectFile &Obj;
39 MachODumper(const object::MachOObjectFile &O) : Obj(O) {} in MachODumper()
87 extractSections(const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in extractSections()
109 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd) { in processLoadCommandData()
116 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd) { in processLoadCommandData()
124 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd) { in processLoadCommandData()
132 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd) { in readString()
143 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd) { in processLoadCommandData()
150 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd) { in processLoadCommandData()
[all …]
/external/llvm/include/llvm/Object/
DMachO.h73 friend class MachOObjectFile;
121 friend class MachOObjectFile;
163 friend class MachOObjectFile;
187 class MachOObjectFile : public ObjectFile {
196 static Expected<std::unique_ptr<MachOObjectFile>>
445 MachOObjectFile(MemoryBufferRef Object, bool IsLittleEndian, bool Is64Bits,
493 const MachOObjectFile *MachOOF = in getOffset()
494 static_cast<const MachOObjectFile *>(OwningObject); in getOffset()
501 const MachOObjectFile *MachOOF = in getLength()
502 static_cast<const MachOObjectFile *>(OwningObject); in getLength()
[all …]
DMachOUniversal.h95 MachOObjectFile::getArchTriple(Header.cputype, Header.cpusubtype); in getArchTypeName()
99 MachOObjectFile::getArchTriple(Header64.cputype, in getArchTypeName()
105 Expected<std::unique_ptr<MachOObjectFile>> getAsObjectFile() const;
153 Expected<std::unique_ptr<MachOObjectFile>>
DRelocVisitor.h56 if (isa<MachOObjectFile>(ObjToVisit))
257 const MachOObjectFile *Obj = cast<MachOObjectFile>(R.getObject()); in getLengthMachO64()
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldMachOI386.h39 const MachOObjectFile &Obj = in processRelocationRef()
40 static_cast<const MachOObjectFile &>(BaseObjT); in processRelocationRef()
135 return populateJumpTable(cast<MachOObjectFile>(Obj), Section, SectionID); in finalizeSection()
137 return populateIndirectSymbolPointersSection(cast<MachOObjectFile>(Obj), in finalizeSection()
147 const MachOObjectFile &Obj = in processSECTDIFFRelocation()
148 static_cast<const MachOObjectFile&>(BaseObjT); in processSECTDIFFRelocation()
210 Error populateJumpTable(const MachOObjectFile &Obj, in populateJumpTable()
DRuntimeDyldMachOX86_64.h39 const MachOObjectFile &Obj = in processRelocationRef()
40 static_cast<const MachOObjectFile &>(BaseObjT); in processRelocationRef()
160 const MachOObjectFile &BaseObj, in processSubtractRelocation()
162 const MachOObjectFile &Obj = in processSubtractRelocation()
163 static_cast<const MachOObjectFile&>(BaseObj); in processSubtractRelocation()
DRuntimeDyldMachOARM.h58 const MachOObjectFile &Obj = in processRelocationRef()
59 static_cast<const MachOObjectFile &>(BaseObjT); in processRelocationRef()
180 return populateIndirectSymbolPointersSection(cast<MachOObjectFile>(Obj), in finalizeSection()
221 const MachOObjectFile &MachO = in processHALFSECTDIFFRelocation()
222 static_cast<const MachOObjectFile&>(BaseTObj); in processHALFSECTDIFFRelocation()
DRuntimeDyldMachOAArch64.h250 const MachOObjectFile &Obj = in processRelocationRef()
251 static_cast<const MachOObjectFile &>(BaseObjT); in processRelocationRef()
424 const MachOObjectFile &Obj = in processSubtractRelocation()
425 static_cast<const MachOObjectFile&>(BaseObjT); in processSubtractRelocation()
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldMachO.h68 const MachOObjectFile &Obj = in getRelocationEntry()
69 static_cast<const MachOObjectFile &>(BaseTObj); in getRelocationEntry()
112 static section_iterator getSectionByAddress(const MachOObjectFile &Obj,
117 Error populateIndirectSymbolPointersSection(const MachOObjectFile &Obj,
DRuntimeDyldMachO.cpp58 const MachOObjectFile &Obj = in processScatteredVANILLA()
59 static_cast<const MachOObjectFile&>(BaseObjT); in processScatteredVANILLA()
99 const MachOObjectFile &Obj = in getRelocationValueRef()
100 static_cast<const MachOObjectFile &>(BaseTObj); in getRelocationValueRef()
141 auto &O = *cast<MachOObjectFile>(RI->getObject()); in makeValueAddendPCRel()
161 RuntimeDyldMachO::getSectionByAddress(const MachOObjectFile &Obj, in getSectionByAddress()
179 const MachOObjectFile &Obj, in populateIndirectSymbolPointersSection()
/external/llvm/lib/DebugInfo/Symbolize/
DSymbolize.cpp231 bool darwinDsymMatchesBinary(const MachOObjectFile *DbgObj, in darwinDsymMatchesBinary()
232 const MachOObjectFile *Obj) { in darwinDsymMatchesBinary()
243 const MachOObjectFile *MachExeObj, const std::string &ArchName) { in lookUpDsymFile()
262 const MachOObjectFile *MachDbgObj = dyn_cast<const MachOObjectFile>(DbgObj); in lookUpDsymFile()
309 if (auto MachObj = dyn_cast<const MachOObjectFile>(Obj)) in getOrCreateObjectPair()
/external/swiftshader/third_party/LLVM/include/llvm/Object/
DMachO.h28 class MachOObjectFile : public ObjectFile {
30 MachOObjectFile(MemoryBuffer *Object, MachOObject *MOO, error_code &ec);

12