Home
last modified time | relevance | path

Searched refs:ObjectFile (Results 1 – 25 of 308) sorted by relevance

12345678910>>...13

/llvm-project-15.0.7/llvm/lib/ObjectYAML/
H A DObjectYAML.cpp25 if (ObjectFile.Elf) in mapping()
27 if (ObjectFile.Coff) in mapping()
29 if (ObjectFile.MachO) in mapping()
31 if (ObjectFile.FatMachO) in mapping()
37 ObjectFile.Arch.reset(new ArchYAML::Archive()); in mapping()
44 ObjectFile.Elf.reset(new ELFYAML::Object()); in mapping()
47 ObjectFile.Coff.reset(new COFFYAML::Object()); in mapping()
50 ObjectFile.MachO.reset(new MachOYAML::Object()); in mapping()
60 ObjectFile.Offload.reset(new OffloadYAML::Binary()); in mapping()
63 ObjectFile.Wasm.reset(new WasmYAML::Object()); in mapping()
[all …]
H A DDXContainerEmitter.cpp27 : ObjectFile(ObjectFile) {} in DXContainerWriter()
32 DXContainerYAML::Object &ObjectFile; member in __anon74b3a5120111::DXContainerWriter
44 if (!ObjectFile.Header.FileSize) in validateSize()
45 ObjectFile.Header.FileSize = Computed; in validateSize()
46 else if (*ObjectFile.Header.FileSize < Computed) in validateSize()
53 if (ObjectFile.Parts.size() != ObjectFile.Header.PartOffsets->size()) in validatePartOffsets()
59 for (auto I : llvm::zip(ObjectFile.Parts, *ObjectFile.Header.PartOffsets)) { in validatePartOffsets()
73 if (ObjectFile.Header.PartOffsets) in computePartOffsets()
78 for (const auto &Part : ObjectFile.Parts) { in computePartOffsets()
95 Header.PartCount = ObjectFile.Parts.size(); in writeHeader()
[all …]
/llvm-project-15.0.7/lldb/source/Symbol/
H A DObjectFile.cpp32 char ObjectFile::ID;
241 ObjectFile::ObjectFile(const lldb::ModuleSP &module_sp, in ObjectFile() function in ObjectFile
265 ObjectFile::ObjectFile(const lldb::ModuleSP &module_sp, in ObjectFile() function in ObjectFile
283 ObjectFile::~ObjectFile() { in ~ObjectFile()
574 void ObjectFile::ClearSymtab() { in ClearSymtab()
667 case ObjectFile::eTypeInvalid: in format()
670 case ObjectFile::eTypeCoreFile: in format()
691 case ObjectFile::eTypeJIT: in format()
694 case ObjectFile::eTypeUnknown: in format()
709 case ObjectFile::eStrataUser: in format()
[all …]
H A DSymbolFile.cpp48 ObjectFile *module_obj_file = module_sp->GetObjectFile(); in FindPlugin()
90 ObjectFile::Type obj_file_type = objfile_sp->CalculateType(); in FindPlugin()
93 (obj_file_type == ObjectFile::eTypeExecutable || in FindPlugin()
94 obj_file_type == ObjectFile::eTypeSharedLibrary || in FindPlugin()
95 obj_file_type == ObjectFile::eTypeDebugInfo)) { in FindPlugin()
181 ObjectFile *SymbolFileCommon::GetMainObjectFile() { in GetMainObjectFile()
186 ObjectFile *module_objfile = GetMainObjectFile(); in SectionFileAddressesChanged()
187 ObjectFile *symfile_objfile = GetObjectFile(); in SectionFileAddressesChanged()
/llvm-project-15.0.7/llvm/lib/Object/
H A DObjectFile.cpp41 void ObjectFile::anchor() {} in anchor()
43 ObjectFile::ObjectFile(unsigned int Type, MemoryBufferRef Source) in ObjectFile() function in ObjectFile
89 bool ObjectFile::isBerkeleyText(DataRefImpl Sec) const { in isBerkeleyText()
93 bool ObjectFile::isBerkeleyData(DataRefImpl Sec) const { in isBerkeleyData()
100 ObjectFile::getRelocatedSection(DataRefImpl Sec) const { in getRelocatedSection()
104 Triple ObjectFile::makeTriple() const { in makeTriple()
132 Expected<std::unique_ptr<ObjectFile>>
187 Expected<OwningBinary<ObjectFile>>
188 ObjectFile::createObjectFile(StringRef ObjectPath) { in createObjectFile()
195 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = in createObjectFile()
[all …]
H A DObject.cpp30 const_cast<OwningBinary<ObjectFile> *>(OF)); in wrap()
153 auto OF = cast<ObjectFile>(unwrap(BR)); in LLVMObjectFileCopySectionIterator()
162 auto OF = cast<ObjectFile>(unwrap(BR)); in LLVMObjectFileIsSectionIteratorAtEnd()
167 auto OF = cast<ObjectFile>(unwrap(BR)); in LLVMObjectFileCopySymbolIterator()
176 auto OF = cast<ObjectFile>(unwrap(BR)); in LLVMObjectFileIsSymbolIteratorAtEnd()
185 std::unique_ptr<ObjectFile> Obj; in LLVMCreateObjectFile()
197 delete unwrap(ObjectFile); in LLVMDisposeObjectFile()
202 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMGetSections()
213 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMIsSectionIteratorAtEnd()
235 OwningBinary<ObjectFile> *OB = unwrap(OF); in LLVMGetSymbols()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-objdump/
H A DMachODump.h23 class ObjectFile; variable
67 void printMachOFileHeader(const object::ObjectFile *O);
68 void printMachOLoadCommands(const object::ObjectFile *O);
70 void printExportsTrie(const object::ObjectFile *O);
71 void printRebaseTable(object::ObjectFile *O);
72 void printBindTable(object::ObjectFile *O);
73 void printLazyBindTable(object::ObjectFile *O);
74 void printWeakBindTable(object::ObjectFile *O);
H A Dllvm-objdump.h97 SectionFilter(FilterPredicate P, llvm::object::ObjectFile const &O) in SectionFilter()
110 llvm::object::ObjectFile const &Object;
121 SectionFilter ToolSectionFilter(llvm::object::ObjectFile const &O,
125 void printRelocations(const object::ObjectFile *O);
126 void printDynamicRelocations(const object::ObjectFile *O);
127 void printSectionHeaders(object::ObjectFile &O);
128 void printSectionContents(const object::ObjectFile *O);
129 void printSymbolTable(const object::ObjectFile &O, StringRef ArchiveName,
132 void printSymbol(const object::ObjectFile &O, const object::SymbolRef &Symbol,
151 SymbolInfoTy createSymbolInfo(const object::ObjectFile &Obj,
H A DELFDump.h21 class ObjectFile; variable
32 void printELFFileHeader(const object::ObjectFile *O);
33 void printELFDynamicSection(const object::ObjectFile *Obj);
34 void printELFSymbolVersionInfo(const object::ObjectFile *Obj);
/llvm-project-15.0.7/llvm/include/llvm/Object/
H A DObjectFile.h41 class ObjectFile; variable
53 const ObjectFile *OwningObject = nullptr;
73 const ObjectFile *getObject() const;
84 const ObjectFile *OwningObject = nullptr;
141 const ObjectFile *getObject() const;
204 const ObjectFile *getObject() const;
228 class ObjectFile : public SymbolicFile {
302 ObjectFile() = delete;
303 ObjectFile(const ObjectFile &other) = delete;
362 static Expected<OwningBinary<ObjectFile>>
[all …]
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/Symbolize/
H A DSymbolize.h35 class ObjectFile; variable
77 Expected<DILineInfo> symbolizeCode(const ObjectFile &Obj,
84 symbolizeInlinedCode(const ObjectFile &Obj,
93 Expected<DIGlobal> symbolizeData(const ObjectFile &Obj,
125 using ObjectPair = std::pair<const ObjectFile *, const ObjectFile *>;
161 ObjectFile *lookUpDsymFile(const std::string &Path,
164 ObjectFile *lookUpDebuglinkObject(const std::string &Path,
165 const ObjectFile *Obj,
167 ObjectFile *lookUpBuildIDObject(const std::string &Path,
185 Expected<ObjectFile *> getOrCreateObject(const std::string &Path,
[all …]
/llvm-project-15.0.7/lldb/include/lldb/Symbol/
H A DObjectFile.h38 virtual void PopulateSymtab(lldb_private::ObjectFile *obj_file,
41 virtual void PopulateSectionList(lldb_private::ObjectFile *obj_file,
60 class ObjectFile : public std::enable_shared_from_this<ObjectFile>,
128 ~ObjectFile() override;
552 ObjectFile::BinaryType &type) { in GetCorefileMainBinaryInfo()
771 ObjectFile(const ObjectFile &) = delete;
772 const ObjectFile &operator=(const ObjectFile &) = delete;
778 template <> struct format_provider<lldb_private::ObjectFile::Type> {
779 static void format(const lldb_private::ObjectFile::Type &type,
783 template <> struct format_provider<lldb_private::ObjectFile::Strata> {
[all …]
/llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/
H A DRuntimeDyld.h78 virtual object::OwningBinary<object::ObjectFile>
79 getObjectForDebug(const object::ObjectFile &Obj) const = 0;
184 const object::ObjectFile &Obj) {} in notifyObjectLoaded()
200 std::unique_ptr<LoadedObjectInfo> loadObject(const object::ObjectFile &O);
289 object::OwningBinary<object::ObjectFile> O,
292 unique_function<Error(const object::ObjectFile &Obj, LoadedObjectInfo &,
295 unique_function<void(object::OwningBinary<object::ObjectFile> O,
315 object::OwningBinary<object::ObjectFile> O,
318 unique_function<Error(const object::ObjectFile &Obj,
322 unique_function<void(object::OwningBinary<object::ObjectFile>,
/llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/JIT/
H A DObjectFileJIT.h17 class ObjectFileJIT : public lldb_private::ObjectFile {
35 static lldb_private::ObjectFile *
40 static lldb_private::ObjectFile *CreateMemoryInstance(
54 return ClassID == &ID || ObjectFile::isA(ClassID); in isA()
56 static bool classof(const ObjectFile *obj) { return obj->isA(&ID); } in classof()
96 ObjectFile::Type CalculateType() override;
98 ObjectFile::Strata CalculateStrata() override;
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldImpl.h335 virtual void setMipsABI(const ObjectFile &Obj) { in setMipsABI()
363 Error emitCommonSymbols(const ObjectFile &Obj,
371 Expected<unsigned> emitSection(const ObjectFile &Obj,
380 Expected<unsigned> findOrEmitSection(const ObjectFile &Obj,
420 Error computeTotalAllocSize(const ObjectFile &Obj,
426 unsigned computeGOTSize(const ObjectFile &Obj);
429 unsigned computeSectionStubBufSize(const ObjectFile &Obj,
462 loadObject(const object::ObjectFile &Obj) = 0;
550 object::OwningBinary<object::ObjectFile> O,
566 virtual bool isCompatibleFile(const ObjectFile &Obj) const = 0;
[all …]
H A DRuntimeDyldMachO.h65 const ObjectFile &BaseTObj, in getRelocationEntry()
84 const ObjectFile &BaseObjT,
98 getRelocationValueRef(const ObjectFile &BaseTObj,
130 loadObject(const object::ObjectFile &O) override;
134 bool isCompatibleFile(const object::ObjectFile &Obj) const override;
158 Error finalizeLoad(const ObjectFile &Obj,
H A DRuntimeDyldCOFF.cpp39 OwningBinary<ObjectFile>
40 getObjectForDebug(const ObjectFile &Obj) const override { in getObjectForDebug()
41 return OwningBinary<ObjectFile>(); in getObjectForDebug()
66 RuntimeDyldCOFF::loadObject(const object::ObjectFile &O) { in loadObject()
117 bool RuntimeDyldCOFF::isCompatibleFile(const object::ObjectFile &Obj) const { in isCompatibleFile()
/llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/PDB/
H A DObjectFilePDB.h19 class ObjectFilePDB : public ObjectFile {
33 static ObjectFile *
38 static ObjectFile *CreateMemoryInstance(const lldb::ModuleSP &module_sp,
56 return ClassID == &ID || ObjectFile::isA(ClassID); in isA()
58 static bool classof(const ObjectFile *obj) { return obj->isA(&ID); } in classof()
/llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/Breakpad/
H A DObjectFileBreakpad.h18 class ObjectFileBreakpad : public ObjectFile {
29 static ObjectFile *
34 static ObjectFile *CreateMemoryInstance(const lldb::ModuleSP &module_sp,
52 return ClassID == &ID || ObjectFile::isA(ClassID); in isA()
54 static bool classof(const ObjectFile *obj) { return obj->isA(&ID); } in classof()
/llvm-project-15.0.7/llvm/unittests/ObjCopy/
H A DObjCopyTest.cpp105 Expected<std::unique_ptr<ObjectFile>> createObjectFileFromYamlDescription( in createObjectFileFromYamlDescription()
110 std::unique_ptr<ObjectFile> Obj = in createObjectFileFromYamlDescription()
151 bool hasSection(ObjectFile &File, StringRef SectionName) { in hasSection()
166 void checkSectionData(ObjectFile &File, StringRef SectionName, in checkSectionData()
193 Expected<std::unique_ptr<ObjectFile>> Obj = in copySimpleInMemoryFileImpl()
246 Expected<std::unique_ptr<ObjectFile>> Obj = in addOrUpdateSectionToFileImpl()
273 checkSectionData(*static_cast<ObjectFile *>((*Result).get()), NewSectionName, in addOrUpdateSectionToFileImpl()
341 Expected<std::unique_ptr<ObjectFile>> Obj = in removeSectionByPatternImpl()
365 hasSection(*static_cast<ObjectFile *>((*Result).get()), SectionName)); in removeSectionByPatternImpl()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/OProfileJIT/
H A DOProfileJITEventListener.cpp42 std::map<ObjectKey, OwningBinary<ObjectFile>> DebugObjects;
52 void notifyObjectLoaded(ObjectKey Key, const ObjectFile &Obj,
81 ObjectKey Key, const ObjectFile &Obj, in notifyObjectLoaded()
87 OwningBinary<ObjectFile> DebugObjOwner = L.getObjectForDebug(Obj); in notifyObjectLoaded()
88 const ObjectFile &DebugObj = *DebugObjOwner.getBinary(); in notifyObjectLoaded()
150 const ObjectFile &DebugObj = *DebugObjects[Key].getBinary(); in notifyFreeingObject()
/llvm-project-15.0.7/llvm/include/llvm-c/
H A DObject.h211 void LLVMDisposeObjectFile(LLVMObjectFileRef ObjectFile);
214 LLVMSectionIteratorRef LLVMGetSections(LLVMObjectFileRef ObjectFile);
217 LLVMBool LLVMIsSectionIteratorAtEnd(LLVMObjectFileRef ObjectFile,
221 LLVMSymbolIteratorRef LLVMGetSymbols(LLVMObjectFileRef ObjectFile);
224 LLVMBool LLVMIsSymbolIteratorAtEnd(LLVMObjectFileRef ObjectFile,
/llvm-project-15.0.7/llvm/tools/llvm-size/
H A Dllvm-size.cpp174 static bool considerForSize(ObjectFile *Obj, SectionRef Section) { in considerForSize()
190 static Expected<uint64_t> getCommonSize(ObjectFile *Obj) { in getCommonSize()
356 static void printObjectSectionSizes(ObjectFile *Obj) { in printObjectSectionSizes()
564 if (ObjectFile *o = dyn_cast<ObjectFile>(&*ChildOrErr.get())) { in printFileSectionSizes()
598 if (ObjectFile *o = dyn_cast<ObjectFile>(&*UO.get())) { in printFileSectionSizes()
636 if (ObjectFile *o = dyn_cast<ObjectFile>(&*ChildOrErr.get())) { in printFileSectionSizes()
689 if (ObjectFile *o = dyn_cast<ObjectFile>(&*UO.get())) { in printFileSectionSizes()
723 if (ObjectFile *o = dyn_cast<ObjectFile>(&*ChildOrErr.get())) { in printFileSectionSizes()
764 if (ObjectFile *o = dyn_cast<ObjectFile>(&*UO.get())) { in printFileSectionSizes()
800 if (ObjectFile *o = dyn_cast<ObjectFile>(&*ChildOrErr.get())) { in printFileSectionSizes()
[all …]
/llvm-project-15.0.7/llvm/lib/DebugInfo/Symbolize/
H A DSymbolize.cpp82 LLVMSymbolizer::symbolizeCode(const ObjectFile &Obj, in symbolizeCode()
176 LLVMSymbolizer::symbolizeData(const ObjectFile &Obj, in symbolizeData()
217 LLVMSymbolizer::symbolizeFrame(const ObjectFile &Obj, in symbolizeFrame()
367 ObjectFile *DbgObj = DbgObjOrErr.get(); in lookUpDsymFile()
516 ObjectFile *Obj = ObjOrErr.get(); in getOrCreateObjectPair()
518 ObjectFile *DbgObj = nullptr; in getOrCreateObjectPair()
538 Expected<ObjectFile *>
560 return static_cast<ObjectFile *>(nullptr); in getOrCreateObject()
567 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = in getOrCreateObject()
574 ObjectFile *Res = ObjOrErr->get(); in getOrCreateObject()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/wasm/
H A DObjectFileWasm.h22 class ObjectFileWasm : public ObjectFile {
32 static ObjectFile *
37 static ObjectFile *CreateMemoryInstance(const lldb::ModuleSP &module_sp,
58 return ClassID == &ID || ObjectFile::isA(ClassID); in isA()
60 static bool classof(const ObjectFile *obj) { return obj->isA(&ID); } in classof()

12345678910>>...13