Home
last modified time | relevance | path

Searched refs:MachOObj (Results 1 – 15 of 15) sorted by relevance

/external/llvm-project/llvm/tools/llvm-objcopy/MachO/
DMachOReader.cpp21 O.Header.Magic = MachOObj.getHeader().magic; in readHeader()
22 O.Header.CPUType = MachOObj.getHeader().cputype; in readHeader()
23 O.Header.CPUSubType = MachOObj.getHeader().cpusubtype; in readHeader()
24 O.Header.FileType = MachOObj.getHeader().filetype; in readHeader()
25 O.Header.NCmds = MachOObj.getHeader().ncmds; in readHeader()
26 O.Header.SizeOfCmds = MachOObj.getHeader().sizeofcmds; in readHeader()
27 O.Header.Flags = MachOObj.getHeader().flags; in readHeader()
65 const object::MachOObjectFile &MachOObj, in extractSections() argument
72 if (MachOObj.isLittleEndian() != sys::IsLittleEndianHost) { in extractSections()
86 MachOObj.getSection(NextSectionIndex++); in extractSections()
[all …]
DMachOReader.h28 const object::MachOObjectFile &MachOObj; variable
47 explicit MachOReader(const object::MachOObjectFile &Obj) : MachOObj(Obj) {} in MachOReader()
/external/llvm-project/llvm/lib/ExecutionEngine/Orc/
DMangling.cpp134 auto &MachOObj = cast<object::MachOObjectFile>(*Obj->get()); in getObjectSymbolInfo() local
135 for (auto &Sec : MachOObj.sections()) { in getObjectSymbolInfo()
136 auto SecType = MachOObj.getSectionType(Sec); in getObjectSymbolInfo()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/JITLink/
DMachO_x86_64.cpp450 auto MachOObj = object::ObjectFile::createMachOObjectFile(ObjBuffer); in buildGraph() local
451 if (!MachOObj) in buildGraph()
452 return MachOObj.takeError(); in buildGraph()
453 return MachOLinkGraphBuilder_x86_64(**MachOObj).buildGraph(); in buildGraph()
DMachO_arm64.cpp490 auto MachOObj = object::ObjectFile::createMachOObjectFile(ObjBuffer); in buildGraph() local
491 if (!MachOObj) in buildGraph()
492 return MachOObj.takeError(); in buildGraph()
493 return MachOLinkGraphBuilder_arm64(**MachOObj).buildGraph(); in buildGraph()
/external/llvm/tools/obj2yaml/
Dmacho2yaml.cpp512 if (const auto *MachOObj = dyn_cast<object::MachOUniversalBinary>(&Binary)) { in macho2yaml() local
513 if (auto Err = macho2yaml(Out, *MachOObj)) { in macho2yaml()
519 if (const auto *MachOObj = dyn_cast<object::MachOObjectFile>(&Binary)) { in macho2yaml() local
520 if (auto Err = macho2yaml(Out, *MachOObj)) { in macho2yaml()
/external/llvm-project/llvm/lib/ExecutionEngine/JITLink/
DMachO_x86_64.cpp561 auto MachOObj = object::ObjectFile::createMachOObjectFile(ObjBuffer); in buildGraph() local
562 if (!MachOObj) in buildGraph()
563 return MachOObj.takeError(); in buildGraph()
564 return MachOLinkGraphBuilder_x86_64(**MachOObj).buildGraph(); in buildGraph()
DMachO_arm64.cpp514 auto MachOObj = object::ObjectFile::createMachOObjectFile(ObjBuffer); in buildGraph() local
515 if (!MachOObj) in buildGraph()
516 return MachOObj.takeError(); in buildGraph()
517 return MachOLinkGraphBuilder_arm64(**MachOObj).buildGraph(); in buildGraph()
/external/llvm-project/llvm/tools/obj2yaml/
Dmacho2yaml.cpp640 if (const auto *MachOObj = dyn_cast<object::MachOUniversalBinary>(&Binary)) in macho2yaml() local
641 return macho2yaml(Out, *MachOObj); in macho2yaml()
643 if (const auto *MachOObj = dyn_cast<object::MachOObjectFile>(&Binary)) in macho2yaml() local
644 return macho2yaml(Out, *MachOObj); in macho2yaml()
/external/llvm/tools/llvm-readobj/
DMachODumper.cpp73 const MachOObjectFile *MachOObj = dyn_cast<MachOObjectFile>(Obj); in createMachODumper() local
74 if (!MachOObj) in createMachODumper()
77 Result.reset(new MachODumper(MachOObj, Writer)); in createMachODumper()
/external/llvm-project/llvm/tools/dsymutil/
DDwarfLinkerForBinary.cpp568 if (auto *MachOObj = dyn_cast<object::MachOObjectFile>(&Obj)) in findValidRelocs() local
569 findValidRelocsMachO(Section, *MachOObj, DMO); in findValidRelocs()
/external/llvm-project/llvm/tools/llvm-readobj/
Dllvm-readobj.cpp447 if (const MachOObjectFile *MachOObj = dyn_cast<MachOObjectFile>(&Obj)) in createDumper() local
448 return createMachODumper(*MachOObj, Writer); in createDumper()
/external/llvm-project/llvm/tools/llvm-objdump/
DMachODump.cpp184 static const Target *GetTarget(const MachOObjectFile *MachOObj, in GetTarget() argument
190 TT = MachOObj->getArchTriple(McpuDefault); in GetTarget()
353 static void getSectionsAndSymbols(MachOObjectFile *MachOObj, in getSectionsAndSymbols() argument
358 const StringRef FileName = MachOObj->getFileName(); in getSectionsAndSymbols()
359 for (const SymbolRef &Symbol : MachOObj->symbols()) { in getSectionsAndSymbols()
365 for (const SectionRef &Section : MachOObj->sections()) in getSectionsAndSymbols()
369 for (const auto &Command : MachOObj->load_commands()) { in getSectionsAndSymbols()
374 MachOObj->getLinkeditDataLoadCommand(Command); in getSectionsAndSymbols()
376 MachOObj->ReadULEB128s(LLC.dataoff, FoundFns); in getSectionsAndSymbols()
378 MachO::segment_command SLC = MachOObj->getSegmentLoadCommand(Command); in getSectionsAndSymbols()
[all …]
/external/llvm/tools/llvm-objdump/
DMachODump.cpp148 static const Target *GetTarget(const MachOObjectFile *MachOObj, in GetTarget() argument
154 TT = MachOObj->getArchTriple(McpuDefault); in GetTarget()
294 static void getSectionsAndSymbols(MachOObjectFile *MachOObj, in getSectionsAndSymbols() argument
299 for (const SymbolRef &Symbol : MachOObj->symbols()) { in getSectionsAndSymbols()
312 for (const SectionRef &Section : MachOObj->sections()) { in getSectionsAndSymbols()
319 for (const auto &Command : MachOObj->load_commands()) { in getSectionsAndSymbols()
324 MachOObj->getLinkeditDataLoadCommand(Command); in getSectionsAndSymbols()
326 MachOObj->ReadULEB128s(LLC.dataoff, FoundFns); in getSectionsAndSymbols()
328 MachO::segment_command SLC = MachOObj->getSegmentLoadCommand(Command); in getSectionsAndSymbols()
/external/llvm/tools/dsymutil/
DDwarfLinker.cpp1978 if (auto *MachOObj = dyn_cast<object::MachOObjectFile>(&Obj)) in findValidRelocs() local
1979 findValidRelocsMachO(Section, *MachOObj, DMO); in findValidRelocs()