Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/llvm/lib/Object/
H A DMachOObjectFile.cpp97 getSectionPtr(const MachOObjectFile &O, MachOObjectFile::LoadCommandInfo L, in getSectionPtr()
281 const MachOObjectFile &Obj, const MachOObjectFile::LoadCommandInfo &Load, in parseSegmentLoadCommand()
1252 std::unique_ptr<MachOObjectFile> Obj( in create()
1261 MachOObjectFile::MachOObjectFile(MemoryBufferRef Object, bool IsLittleEndian, in MachOObjectFile() function in MachOObjectFile
2796 Triple MachOObjectFile::getHostArch() { in getHostArch()
3615 MachOObjectFile::rebaseTable(Error &Err, MachOObjectFile *O, in rebaseTable()
4274 MachOObjectFile::bindTable(Error &Err, MachOObjectFile *O, in bindTable()
4313 MachOObjectFile::load_command_iterator
4318 MachOObjectFile::load_command_iterator
4409 MachOObjectFile::getAnyRelocationType( in getAnyRelocationType()
[all …]
H A DMachOUniversalWriter.cpp37 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()
122 std::unique_ptr<MachOObjectFile> MFO = nullptr; in create()
136 MachOObjectFile *O = cast<MachOObjectFile>(Bin); in create()
239 MachOObjectFile::getArchTriple(CPUType, CPUSubType).getArchName()); in create()
/llvm-project-15.0.7/llvm/include/llvm/Object/
H A DMachO.h89 friend class MachOObjectFile;
116 const MachOObjectFile *O;
185 friend class MachOObjectFile;
192 const MachOObjectFile *O;
236 friend class MachOObjectFile;
244 const MachOObjectFile *O;
342 const MachOObjectFile *O;
381 class MachOObjectFile : public ObjectFile {
849 const MachOObjectFile *MachOOF = in getOffset()
857 const MachOObjectFile *MachOOF = in getLength()
[all …]
H A DMachOUniversal.h96 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 DMachOUniversalWriter.h32 class MachOObjectFile; variable
49 explicit Slice(const MachOObjectFile &O);
51 Slice(const MachOObjectFile &O, uint32_t Align);
/llvm-project-15.0.7/llvm/tools/llvm-size/
H A Dllvm-size.cpp365 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(Obj); in printObjectSectionSizes()
520 auto *MachO = dyn_cast<MachOObjectFile>(O); in checkMachOAndArchFlags()
532 H = MachO->MachOObjectFile::getHeader(); in checkMachOAndArchFlags()
565 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o); in printFileSectionSizes()
599 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o); in printFileSectionSizes()
637 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o); in printFileSectionSizes()
690 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o); in printFileSectionSizes()
724 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o); in printFileSectionSizes()
765 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o); in printFileSectionSizes()
801 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o); in printFileSectionSizes()
[all …]
/llvm-project-15.0.7/bolt/include/bolt/Rewrite/
H A DMachORewriteInstance.h25 class MachOObjectFile; variable
34 object::MachOObjectFile *InputFile;
71 MachORewriteInstance(object::MachOObjectFile *InputFile, StringRef ToolPath,
75 createMachORewriteInstance(object::MachOObjectFile *InputFile,
/llvm-project-15.0.7/llvm/tools/llvm-readobj/
H A DMachODumper.cpp31 MachODumper(const MachOObjectFile *Obj, ScopedPrinter &Writer) in MachODumper()
74 void printSectionHeaders(const MachOObjectFile *Obj);
76 const MachOObjectFile *Obj;
342 static void getSection(const MachOObjectFile *Obj, in getSection()
371 static void getSegment(const MachOObjectFile *Obj, in getSegment()
372 const MachOObjectFile::LoadCommandInfo &L, in getSegment()
403 static void getSymbol(const MachOObjectFile *Obj, in getSymbol()
469 void MachODumper::printSectionHeaders(const MachOObjectFile *Obj) { in printSectionHeaders()
553 void MachODumper::printRelocation(const MachOObjectFile *Obj, in printRelocation()
865 MachOObjectFile::getBuildPlatform(BVC.platform)); in printMachOVersionMin()
[all …]
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldMachOI386.h37 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 DRuntimeDyldMachOX86_64.h37 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 DRuntimeDyldMachOARM.h104 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-15.0.7/llvm/tools/dsymutil/
H A DMachODebugMapParser.cpp77 std::unique_ptr<DebugMap> parseOneBinary(const MachOObjectFile &MainBinary,
86 void loadMainBinarySymbols(const MachOObjectFile &MainBinary);
87 void loadCurrentObjectFileSymbols(const object::MachOObjectFile &Obj);
112 void dumpOneBinaryStab(const MachOObjectFile &MainBinary,
181 auto Object = ObjectEntry->getObjectAs<MachOObjectFile>(Result->getTriple()); in switchToNewDebugMapObject()
194 static std::string getArchName(const object::MachOObjectFile &Obj) { in getArchName()
200 MachODebugMapParser::parseOneBinary(const MachOObjectFile &MainBinary, in parseOneBinary()
371 auto Objects = ObjectEntry->getObjectsAs<MachOObjectFile>(); in dumpStab()
396 auto Objects = ObjectEntry->getObjectsAs<MachOObjectFile>(); in parse()
514 const object::MachOObjectFile &Obj) { in loadCurrentObjectFileSymbols()
[all …]
H A DMachOUtils.cpp141 static void iterateOnSegments(const object::MachOObjectFile &Obj, in iterateOnSegments()
201 static unsigned transferSymbols(const object::MachOObjectFile &Obj, in transferSymbols()
228 getSection(const object::MachOObjectFile &Obj, in getSection()
230 const object::MachOObjectFile::LoadCommandInfo &LCI, unsigned Idx) { in getSection()
235 getSection(const object::MachOObjectFile &Obj, in getSection()
237 const object::MachOObjectFile::LoadCommandInfo &LCI, unsigned Idx) { in getSection()
256 const object::MachOObjectFile::LoadCommandInfo &LCI, SegmentTy Segment, in transferSegmentAndSections()
257 const object::MachOObjectFile &Obj, MachObjectWriter &Writer, in transferSegmentAndSections()
336 static bool isExecutable(const object::MachOObjectFile &Obj) { in isExecutable()
379 ObjectEntry->getObjectAs<object::MachOObjectFile>(DM.getTriple()); in generateDsymCompanion()
/llvm-project-15.0.7/llvm/tools/llvm-objdump/
H A DMachODump.h21 class MachOObjectFile; variable
59 Error getMachORelocationValueString(const object::MachOObjectFile *Obj,
66 void printMachOUnwindInfo(const object::MachOObjectFile *O);
H A DMachODump.cpp2376 if (MachOObjectFile *MachOOF = dyn_cast<MachOObjectFile>(&*O)) in parseInputMachO()
2479 if (MachOObjectFile *MachOOF = dyn_cast<MachOObjectFile>(&O)) in parseInputMachO()
2530 if (MachOObjectFile *MachOOF = dyn_cast<MachOObjectFile>(&Obj)) in parseInputMachO()
2557 if (MachOObjectFile *MachOOF = dyn_cast<MachOObjectFile>(O)) in parseInputMachO()
10267 const MachOObjectFile *file = cast<const MachOObjectFile>(Obj); in printMachOFileHeader()
10272 const MachOObjectFile *file = cast<const MachOObjectFile>(Obj); in printMachOLoadCommands()
10508 if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o)) in printLazyBindTable()
10518 if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o)) in printWeakBindTable()
10528 if (const MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o)) in printExportsTrie()
10538 if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(o)) in printRebaseTable()
[all …]
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldMachO.h67 const MachOObjectFile &Obj = in getRelocationEntry()
68 static_cast<const MachOObjectFile &>(BaseTObj); in getRelocationEntry()
112 static section_iterator getSectionByAddress(const MachOObjectFile &Obj,
117 Error populateIndirectSymbolPointersSection(const MachOObjectFile &Obj,
H A DRuntimeDyldMachO.cpp59 const MachOObjectFile &Obj = in processScatteredVANILLA()
60 static_cast<const MachOObjectFile&>(BaseObjT); in processScatteredVANILLA()
101 const MachOObjectFile &Obj = in getRelocationValueRef()
102 static_cast<const MachOObjectFile &>(BaseTObj); in getRelocationValueRef()
143 auto &O = *cast<MachOObjectFile>(RI->getObject()); in makeValueAddendPCRel()
163 RuntimeDyldMachO::getSectionByAddress(const MachOObjectFile &Obj, in getSectionByAddress()
181 const MachOObjectFile &Obj, in populateIndirectSymbolPointersSection()
/llvm-project-15.0.7/llvm/tools/obj2yaml/
H A Dmacho2yaml.cpp28 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd,
31 const object::MachOObjectFile &Obj;
58 MachODumper(const object::MachOObjectFile &O, in MachODumper()
169 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in extractSections()
208 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData()
217 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData()
227 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData()
248 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData()
257 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData()
266 const llvm::object::MachOObjectFile::LoadCommandInfo &LoadCmd, in processLoadCommandData()
[all …]
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/
H A DMachOLinkGraphBuilder.h85 MachOLinkGraphBuilder(const object::MachOObjectFile &Obj, Triple TT,
90 const object::MachOObjectFile &getObject() const { return Obj; } in getObject()
181 static unsigned getPointerSize(const object::MachOObjectFile &Obj);
182 static support::endianness getEndianness(const object::MachOObjectFile &Obj);
226 const object::MachOObjectFile &Obj;
/llvm-project-15.0.7/llvm/include/llvm/ObjCopy/MachO/
H A DMachOObjcopy.h17 class MachOObjectFile; variable
32 object::MachOObjectFile &In, raw_ostream &Out);
/llvm-project-15.0.7/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp300 if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj)) in isSymbolList64Bit()
327 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); in darwinPrintSymbol()
371 H = MachO->MachOObjectFile::getHeader(); in darwinPrintSymbol()
761 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); in printSymbolList()
1136 else if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj)) in getNMSectionTagAndName()
1209 H_64 = MachO.MachOObjectFile::getHeader64(); in dumpSymbolsFromDLInfoMachO()
1212 H = MachO.MachOObjectFile::getHeader(); in dumpSymbolsFromDLInfoMachO()
1783 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); in getSymbolNamesFromObject()
1931 auto *MachO = dyn_cast<MachOObjectFile>(O); in checkMachOAndArchFlags()
1945 H = MachO->MachOObjectFile::getHeader(); in checkMachOAndArchFlags()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-gsymutil/
H A Dllvm-gsymutil.cpp150 static uint32_t getCPUType(MachOObjectFile &MachO) { in getCPUType()
158 static bool filterArch(MachOObjectFile &Obj) { in filterArch()
211 getImageBaseAddress(const object::MachOObjectFile *MachO) { in getImageBaseAddress()
241 if (const auto *MachO = dyn_cast<object::MachOObjectFile>(&Obj)) in getImageBaseAddress()
341 std::vector<std::unique_ptr<MachOObjectFile>> FilterObjs; in handleBuffer()
397 MachOObjectFile::findDsymObjectMembers(ConvertFilename)) { in convertFileToGSYM()
/llvm-project-15.0.7/llvm/lib/ObjCopy/MachO/
H A DMachOReader.h31 const object::MachOObjectFile &MachOObj;
53 explicit MachOReader(const object::MachOObjectFile &Obj) : MachOObj(Obj) {} in MachOReader()
/llvm-project-15.0.7/llvm/tools/llvm-lipo/
H A Dllvm-lipo.cpp138 if (!MachOObjectFile::isValidArch(ArchitectureName)) { in validateArchitectureName()
143 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()
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()
566 Expected<std::unique_ptr<MachOObjectFile>> BinaryOrError = in buildSlices()
584 } else if (const auto *O = dyn_cast<MachOObjectFile>(InputBinary)) { in buildSlices()
664 auto O = dyn_cast<MachOObjectFile>(ReplacementBinary); in buildReplacementSlices()
/llvm-project-15.0.7/llvm/lib/DebugInfo/GSYM/
H A DObjectFileTransformer.cpp28 if (auto *MachO = dyn_cast<object::MachOObjectFile>(&Obj)) { in getUUID()
75 const bool IsMachO = isa<MachOObjectFile>(&Obj); in convert()

123