/llvm-project/llvm/lib/Object/ |
H A D | MachOObjectFile.cpp | 1 //===- MachOObjectFile.cpp - Mach-O object file binding -------------------===// 9 // This file defines the MachOObjectFile class, which binds the MachOObject 71 static T getStruct(const MachOObjectFile &O, const char *P) { in getStruct() 84 static Expected<T> getStructOrErr(const MachOObjectFile &O, const char *P) { in getStructOrErr() 97 getSectionPtr(const MachOObjectFile &O, MachOObjectFile::LoadCommandInfo L, in getSectionPtr() 111 static const char *getPtr(const MachOObjectFile &O, size_t Offset, in getPtr() 119 getSymbolTableEntryBase(const MachOObjectFile &O, DataRefImpl DRI) { in getSymbolTableEntryBase() 132 static unsigned getCPUType(const MachOObjectFile &O) { in getCPUType() 136 static unsigned getCPUSubType(const MachOObjectFile 1266 MachOObjectFile::MachOObjectFile(MemoryBufferRef Object, bool IsLittleEndian, MachOObjectFile() function in MachOObjectFile [all...] |
H A D | MachOUniversalWriter.cpp | 37 static uint32_t calculateFileAlignment(const MachOObjectFile &O) { in calculateFileAlignment() 69 static uint32_t calculateAlignment(const MachOObjectFile &ObjectFile) { in calculateAlignment() 90 Slice::Slice(const MachOObjectFile &O, uint32_t Align) in Slice() 101 Slice::Slice(const MachOObjectFile &O) : Slice(O, calculateAlignment(O)) {} in Slice() 120 static MachoCPUTy getMachoCPUFromObjectFile(const MachOObjectFile &O) { in getMachoCPUFromObjectFile() 126 std::unique_ptr<MachOObjectFile> MFO = nullptr; in create() 141 MachOObjectFile *O = cast<MachOObjectFile>(Bin); in create() 235 MachOObjectFile::getArchTriple(CPUType, CPUSubType).getArchName()); in create()
|
/llvm-project/llvm/tools/llvm-size/ |
H A D | llvm-size.cpp | 206 static void printDarwinSectionSizes(MachOObjectFile *MachO) { in printDarwinSectionSizes() 281 static void printDarwinSegmentSizes(MachOObjectFile *MachO) { in printDarwinSegmentSizes() 361 // If OutputFormat is darwin and we have a MachOObjectFile print as darwin's in printObjectSectionSizes() 364 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(Obj); in printObjectSectionSizes() 367 // If we have a MachOObjectFile and the OutputFormat is berkeley print as in printObjectSectionSizes() 518 auto *MachO = dyn_cast<MachOObjectFile>(O); in checkMachOAndArchFlags() 527 H_64 = MachO->MachOObjectFile::getHeader64(); in checkMachOAndArchFlags() 528 T = MachOObjectFile::getArchTriple(H_64.cputype, H_64.cpusubtype); in checkMachOAndArchFlags() 530 H = MachO->MachOObjectFile in checkMachOAndArchFlags() [all...] |
/llvm-project/llvm/include/llvm/Object/ |
H A D | MachO.h | 75 ExportEntry(Error *Err, const MachOObjectFile *O, ArrayRef<uint8_t> Trie); 89 friend class MachOObjectFile; 116 const MachOObjectFile *O; 134 BindRebaseSegInfo(const MachOObjectFile *Obj); 170 MachORebaseEntry(Error *Err, const MachOObjectFile *O, 185 friend class MachOObjectFile; 192 const MachOObjectFile *O; 216 MachOBindEntry(Error *Err, const MachOObjectFile *O, 236 friend class MachOObjectFile; 244 const MachOObjectFile *O; [all …]
|
H A D | MachOUniversal.h | 96 return MachOObjectFile::getArchTriple(getCPUType(), getCPUSubType()); in getTriple() 100 MachOObjectFile::getArchTriple(getCPUType(), getCPUSubType(), in getArchFlagName() 105 Expected<std::unique_ptr<MachOObjectFile>> getAsObjectFile() const; 158 Expected<std::unique_ptr<MachOObjectFile>>
|
H A D | MachOUniversalWriter.h | 32 class MachOObjectFile; variable 49 explicit Slice(const MachOObjectFile &O); 51 Slice(const MachOObjectFile &O, uint32_t Align);
|
/llvm-project/llvm/tools/llvm-objdump/ |
H A D | MachODump.h | 22 class MachOObjectFile; variable 64 Error getMachORelocationValueString(const object::MachOObjectFile *Obj, 68 const object::MachOObjectFile * 69 getMachODSymObject(const object::MachOObjectFile *O, StringRef Filename, 76 void printMachOUnwindInfo(const object::MachOObjectFile *O);
|
H A D | MachODump.cpp | 92 static StringRef ordinalName(const object::MachOObjectFile *, int); 132 static const Target *GetTarget(const MachOObjectFile *MachOObj, in GetTarget() 190 const object::MachOObjectFile &Obj; 193 MachODumper(const object::MachOObjectFile &O) : Dumper(O), Obj(O) {} in MachODumper() 199 objdump::createMachODumper(const object::MachOObjectFile &Obj) { in createMachODumper() 285 static void getSectionsAndSymbols(MachOObjectFile *MachOObj, in getSectionsAndSymbols() 349 static void printRelocationTargetName(const MachOObjectFile *O, in printRelocationTargetName() 422 Error objdump::getMachORelocationValueString(const MachOObjectFile *Obj, in getMachORelocationValueString() 600 static void PrintIndirectSymbolTable(MachOObjectFile *O, bool verbose, in PrintIndirectSymbolTable() 656 static void PrintIndirectSymbols(MachOObjectFile * [all...] |
/llvm-project/bolt/include/bolt/Rewrite/ |
H A D | MachORewriteInstance.h | 25 class MachOObjectFile; variable 34 object::MachOObjectFile *InputFile; 73 MachORewriteInstance(object::MachOObjectFile *InputFile, StringRef ToolPath, 77 create(object::MachOObjectFile *InputFile, StringRef ToolPath);
|
/llvm-project/llvm/tools/llvm-readobj/ |
H A D | MachODumper.cpp | 30 MachODumper(const MachOObjectFile *Obj, ScopedPrinter &Writer) in MachODumper() 71 void printRelocation(const MachOObjectFile *Obj, const RelocationRef &Reloc); 73 void printSectionHeaders(const MachOObjectFile *Obj); 75 const MachOObjectFile *Obj; 83 std::unique_ptr<ObjDumper> createMachODumper(const object::MachOObjectFile &Obj, in createMachODumper() 341 static void getSection(const MachOObjectFile *Obj, in getSection() 370 static void getSegment(const MachOObjectFile *Obj, in getSegment() 371 const MachOObjectFile::LoadCommandInfo &L, in getSegment() 402 static void getSymbol(const MachOObjectFile *Obj, in getSymbol() 468 void MachODumper::printSectionHeaders(const MachOObjectFile *Obj) { in printSectionHeaders() [all …]
|
/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
H A D | RuntimeDyldMachOI386.h | 37 const MachOObjectFile &Obj = in processRelocationRef() 38 static_cast<const MachOObjectFile &>(BaseObjT); in processRelocationRef() 136 return populateJumpTable(cast<MachOObjectFile>(Obj), Section, SectionID); in finalizeSection() 138 return populateIndirectSymbolPointersSection(cast<MachOObjectFile>(Obj), in finalizeSection() 148 const MachOObjectFile &Obj = in processSECTDIFFRelocation() 149 static_cast<const MachOObjectFile&>(BaseObjT); in processSECTDIFFRelocation() 211 Error populateJumpTable(const MachOObjectFile &Obj, in populateJumpTable()
|
H A D | RuntimeDyldMachOX86_64.h | 37 const MachOObjectFile &Obj = in processRelocationRef() 38 static_cast<const MachOObjectFile &>(BaseObjT); in processRelocationRef() 158 const MachOObjectFile &BaseObj, in processSubtractRelocation() 160 const MachOObjectFile &Obj = in processSubtractRelocation() 161 static_cast<const MachOObjectFile&>(BaseObj); in processSubtractRelocation()
|
H A D | RuntimeDyldMachOARM.h | 104 const MachOObjectFile &Obj = in processRelocationRef() 105 static_cast<const MachOObjectFile &>(BaseObjT); in processRelocationRef() 297 return populateIndirectSymbolPointersSection(cast<MachOObjectFile>(Obj), in finalizeSection() 347 const MachOObjectFile &MachO = in processHALFSECTDIFFRelocation() 348 static_cast<const MachOObjectFile&>(BaseTObj); in processHALFSECTDIFFRelocation()
|
/llvm-project/llvm/tools/dsymutil/ |
H A D | MachODebugMapParser.cpp | 87 std::unique_ptr<DebugMap> parseOneBinary(const MachOObjectFile &MainBinary, 90 const MachOObjectFile &MainBinary, 102 void loadMainBinarySymbols(const MachOObjectFile &MainBinary); 103 void loadCurrentObjectFileSymbols(const object::MachOObjectFile &Obj); 136 void dumpOneBinaryStab(const MachOObjectFile &MainBinary, in dumpSymTabEntry() 202 auto Object = ObjectEntry->getObjectAs<MachOObjectFile>(Result->getTriple()); in switchToNewDebugMapObject() 293 ObjectEntry->getObjectAs<MachOObjectFile>(Result->getTriple()); in switchToNewLibDebugMapObject() 339 static std::string getArchName(const object::MachOObjectFile &Obj) { 345 const MachOObjectFile &MainBinary, in handleStabDebugMap() 357 MachODebugMapParser::parseOneBinary(const MachOObjectFile [all...] |
H A D | MachOUtils.cpp | 159 static void iterateOnSegments(const object::MachOObjectFile &Obj, in iterateOnSegments() 219 static unsigned transferSymbols(const object::MachOObjectFile &Obj, in transferSymbols() 246 getSection(const object::MachOObjectFile &Obj, in getSection() 248 const object::MachOObjectFile::LoadCommandInfo &LCI, unsigned Idx) { in getSection() 253 getSection(const object::MachOObjectFile &Obj, in getSection() 255 const object::MachOObjectFile::LoadCommandInfo &LCI, unsigned Idx) { in getSection() 274 const object::MachOObjectFile::LoadCommandInfo &LCI, SegmentTy Segment, in transferSegmentAndSections() 275 const object::MachOObjectFile &Obj, MachObjectWriter &Writer, in transferSegmentAndSections() 355 static bool isExecutable(const object::MachOObjectFile &Obj) { in isExecutable() 396 ObjectEntry->getObjectAs<object::MachOObjectFile>(D in generateDsymCompanion() [all...] |
/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
H A D | RuntimeDyldMachO.h | 62 const MachOObjectFile &Obj = 63 static_cast<const MachOObjectFile &>(BaseTObj); 107 static section_iterator getSectionByAddress(const MachOObjectFile &Obj, 112 Error populateIndirectSymbolPointersSection(const MachOObjectFile &Obj,
|
H A D | RuntimeDyldMachO.cpp | 58 const MachOObjectFile &Obj = in processScatteredVANILLA() 59 static_cast<const MachOObjectFile&>(BaseObjT); in processScatteredVANILLA() 100 const MachOObjectFile &Obj = in getRelocationValueRef() 101 static_cast<const MachOObjectFile &>(BaseTObj); in getRelocationValueRef() 142 auto &O = *cast<MachOObjectFile>(RI->getObject()); in makeValueAddendPCRel() 162 RuntimeDyldMachO::getSectionByAddress(const MachOObjectFile &Obj, 180 const MachOObjectFile &Obj, in populateIndirectSymbolPointersSection()
|
/llvm-project/llvm/tools/obj2yaml/ |
H A D | macho2yaml.cpp | 29 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, 32 const object::MachOObjectFile &Obj; 56 extractSections(const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, 61 MachODumper(const object::MachOObjectFile &O, in MachODumper() 170 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in extractSections() 209 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData() 218 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData() 228 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData() 237 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd) { in readString() 249 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData() [all …]
|
/llvm-project/llvm/tools/llvm-nm/ |
H A D | llvm-nm.cpp | 314 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); in darwinPrintSymbol() 340 H_64 = MachO->MachOObjectFile::getHeader64(); in darwinPrintSymbol() 358 H = MachO->MachOObjectFile::getHeader(); in darwinPrintSymbol() 592 static void darwinPrintStab(MachOObjectFile *MachO, const NMSymbol &S) { in darwinPrintStab() 786 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); in printSymbolList() 826 // we have a MachOObjectFile, call darwinPrintSymbol to print as darwin's in printSymbolList() 1016 static char getSymbolNMTypeChar(MachOObjectFile &Obj, basic_symbol_iterator I) { in getSymbolNMTypeChar() 1142 if (isa<MachOObjectFile>(Ob in getNMSectionTagAndName() [all...] |
/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
H A D | MachOLinkGraphBuilder.h | 86 MachOLinkGraphBuilder(const object::MachOObjectFile &Obj, 92 const object::MachOObjectFile &getObject() const { return Obj; } in getObject() 183 static unsigned getPointerSize(const object::MachOObjectFile &Obj); 184 static llvm::endianness getEndianness(const object::MachOObjectFile &Obj); 228 const object::MachOObjectFile &Obj;
|
/llvm-project/llvm/lib/TextAPI/BinaryReader/ |
H A D | DylibReader.cpp | 48 static TripleVec constructTriples(MachOObjectFile *Obj, in constructTriples() 57 auto getOSVersion = [&](const MachOObjectFile::LoadCommandInfo &cmd) { in constructTriples() 145 static Error readMachOHeader(MachOObjectFile *Obj, RecordsSlice &Slice) { in readMachOHeader() 249 static Error readSymbols(MachOObjectFile *Obj, RecordsSlice &Slice, in readSymbols() 337 static Error load(MachOObjectFile *Obj, RecordsSlice &Slice, in load() 362 if (auto *Obj = dyn_cast<MachOObjectFile>(&Bin)) { in readFile() 440 accumulateLocs(MachOObjectFile &Obj, in accumulateLocs() 497 auto DSYMsOrErr = MachOObjectFile::findDsymObjectMembers(DSYM); in accumulateSourceLocFromDSYM() 516 if (auto *Single = dyn_cast<MachOObjectFile>(BinOrErr->get())) { in accumulateSourceLocFromDSYM()
|
/llvm-project/llvm/include/llvm/ObjCopy/MachO/ |
H A D | MachOObjcopy.h | 17 class MachOObjectFile; variable 32 object::MachOObjectFile &In, raw_ostream &Out);
|
/llvm-project/llvm/tools/llvm-lipo/ |
H A D | llvm-lipo.cpp | 141 if (!MachOObjectFile::isValidArch(ArchitectureName)) { in validateArchitectureName() 146 for (auto arch : MachOObjectFile::getValidArchs()) in validateArchitectureName() 331 const auto S = B->isMachO() ? Slice(*cast<MachOObjectFile>(B)) in readInputBinaries() 371 dyn_cast<MachOObjectFile>(InputBinaries.front().getBinary())) { in verifyArch() 387 // Order here is important, because both MachOObjectFile and in printBinaryArchs() 389 Expected<std::unique_ptr<MachOObjectFile>> MachOObjOrError = in printBinaryArchs() 423 if (const auto *MachO = dyn_cast<MachOObjectFile>(Binary)) { in printBinaryArchs() 483 Expected<std::unique_ptr<MachOObjectFile>> Obj = in thinSlice() 564 // Order here is important, because both MachOObjectFile and in buildSlices() 566 Expected<std::unique_ptr<MachOObjectFile>> BinaryOrErro in buildSlices() [all...] |
/llvm-project/llvm/lib/ObjCopy/MachO/ |
H A D | MachOReader.h | 31 const object::MachOObjectFile &MachOObj; 55 explicit MachOReader(const object::MachOObjectFile &Obj) : MachOObj(Obj) {} in MachOReader()
|
/llvm-project/llvm/tools/llvm-gsymutil/ |
H A D | llvm-gsymutil.cpp | 243 static uint32_t getCPUType(MachOObjectFile &MachO) { 251 static bool filterArch(MachOObjectFile &Obj) { in getImageBaseAddress() 304 getImageBaseAddress(const object::MachOObjectFile *MachO) { in getImageBaseAddress() 334 if (const auto *MachO = dyn_cast<object::MachOObjectFile>(&Obj)) in handleObjectFile() 457 std::vector<std::unique_ptr<MachOObjectFile>> FilterObjs; in convertFileToGSYM() 514 MachOObjectFile::findDsymObjectMembers(ConvertFilename)) { in llvm_gsymutil_main()
|