Home
last modified time | relevance | path

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

1234567891011

/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DObjectYAML.cpp23 YamlObjectFile &ObjectFile) { in mapping() argument
25 if (ObjectFile.Elf) in mapping()
26 MappingTraits<ELFYAML::Object>::mapping(IO, *ObjectFile.Elf); in mapping()
27 if (ObjectFile.Coff) in mapping()
28 MappingTraits<COFFYAML::Object>::mapping(IO, *ObjectFile.Coff); in mapping()
29 if (ObjectFile.Goff) in mapping()
30 MappingTraits<GOFFYAML::Object>::mapping(IO, *ObjectFile.Goff); in mapping()
31 if (ObjectFile.MachO) in mapping()
32 MappingTraits<MachOYAML::Object>::mapping(IO, *ObjectFile.MachO); in mapping()
33 if (ObjectFile in mapping()
[all...]
H A DDXContainerEmitter.cpp27 DXContainerWriter(DXContainerYAML::Object &ObjectFile) in DXContainerWriter() argument
28 : ObjectFile(ObjectFile) {} in DXContainerWriter()
33 DXContainerYAML::Object &ObjectFile; member in __anon21a5ffe20111::DXContainerWriter
45 if (!ObjectFile.Header.FileSize) in validateSize()
46 ObjectFile.Header.FileSize = Computed; in validateSize()
47 else if (*ObjectFile.Header.FileSize < Computed) in validateSize()
54 if (ObjectFile.Parts.size() != ObjectFile.Header.PartOffsets->size()) in validatePartOffsets()
59 sizeof(dxbc::Header) + (ObjectFile.Header.PartCount * sizeof(uint32_t)); in validatePartOffsets()
60 for (auto I : llvm::zip(ObjectFile.Parts, *ObjectFile.Header.PartOffsets)) { in validatePartOffsets()
74 if (ObjectFile.Header.PartOffsets) in computePartOffsets()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Symbol/
H A DObjectFile.cpp32 char ObjectFile::ID;
33 size_t ObjectFile::g_initial_bytes_to_read = 512;
53 ObjectFile::FindPlugin(const lldb::ModuleSP &module_sp, const FileSpec *file, in FindPlugin()
99 if (ObjectFile::SplitArchivePathWithObject(path_with_object, archive_file, in FindPlugin()
152 ObjectFileSP ObjectFile::FindPlugin(const lldb::ModuleSP &module_sp, in FindPlugin()
187 bool ObjectFile::IsObjectFile(lldb_private::FileSpec file_spec) { in IsObjectFile()
191 return static_cast<bool>(ObjectFile::FindPlugin( in IsObjectFile()
196 size_t ObjectFile::GetModuleSpecifications(const FileSpec &file, in GetModuleSpecifications()
211 return ObjectFile::GetModuleSpecifications(file, // file spec in GetModuleSpecifications()
221 size_t ObjectFile::GetModuleSpecifications( in GetModuleSpecifications()
[all …]
H A DSymbolFile.cpp49 ObjectFile *module_obj_file = module_sp->GetObjectFile(); in FindPlugin()
91 ObjectFile::Type obj_file_type = objfile_sp->CalculateType(); in FindPlugin()
94 (obj_file_type == ObjectFile::eTypeExecutable || in FindPlugin()
95 obj_file_type == ObjectFile::eTypeSharedLibrary || in FindPlugin()
96 obj_file_type == ObjectFile::eTypeDebugInfo)) { in FindPlugin()
169 ObjectFile *SymbolFileCommon::GetMainObjectFile() { in GetMainObjectFile()
174 ObjectFile *module_objfile = GetMainObjectFile(); in SectionFileAddressesChanged()
175 ObjectFile *symfile_objfile = GetObjectFile(); in SectionFileAddressesChanged()
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DObjectFile.cpp1 //===- ObjectFile.cpp - File format independent object file ---------------===//
9 // This file defines a file format independent ObjectFile class.
13 #include "llvm/Object/ObjectFile.h"
41 void ObjectFile::anchor() {} in anchor()
43 ObjectFile::ObjectFile(unsigned int Type, MemoryBufferRef Source) in ObjectFile() function in ObjectFile
56 Expected<uint64_t> ObjectFile::getSymbolValue(DataRefImpl Ref) const { in getSymbolValue()
69 Error ObjectFile::printSymbolName(raw_ostream &OS, DataRefImpl Symb) const { in printSymbolName()
77 uint32_t ObjectFile::getSymbolAlignment(DataRefImpl DRI) const { return 0; } in getSymbolAlignment()
79 bool ObjectFile
[all...]
H A DObject.cpp24 inline OwningBinary<ObjectFile> *unwrap(LLVMObjectFileRef OF) { in unwrap()
25 return reinterpret_cast<OwningBinary<ObjectFile> *>(OF); in unwrap()
28 inline LLVMObjectFileRef wrap(const OwningBinary<ObjectFile> *OF) { in wrap()
30 const_cast<OwningBinary<ObjectFile> *>(OF)); in wrap()
143 Expected<std::unique_ptr<ObjectFile>> ObjOrErr( in LLVMMachOUniversalBinaryCopyObjectForArch()
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()
183 Expected<std::unique_ptr<ObjectFile>> ObjOrErr( in LLVMCreateObjectFile()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DObjectFile.h41 class ObjectFile; variable
54 const ObjectFile *OwningObject = nullptr;
58 RelocationRef(DataRefImpl RelocationP, const ObjectFile *Owner);
74 const ObjectFile *getObject() const;
85 const ObjectFile *OwningObject = nullptr;
89 SectionRef(DataRefImpl SectionP, const ObjectFile *Owner);
142 const ObjectFile *getObject() const;
182 SymbolRef(DataRefImpl SymbolP, const ObjectFile *Owner);
184 assert(isa<ObjectFile>(BasicSymbolRef::getObject())); in SymbolRef()
205 const ObjectFile *getObject() const;
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/COFF/
H A DObjectFileCOFF.h22 class ObjectFileCOFF : public lldb_private::ObjectFile {
30 : ObjectFile(module_sp, file, file_offset, length, data_sp, data_offset), in ObjectFileCOFF()
44 static lldb_private::ObjectFile *
49 static lldb_private::ObjectFile *
64 return ClassID == &ID || ObjectFile::isA(ClassID); in isA()
66 static bool classof(const ObjectFile *obj) { return obj->isA(&ID); } in classof()
105 lldb_private::ObjectFile::Type CalculateType() override { in CalculateType()
107 return lldb_private::ObjectFile::eTypeObjectFile; in CalculateType()
110 lldb_private::ObjectFile::Strata CalculateStrata() override { in CalculateStrata()
112 return lldb_private::ObjectFile::eStrataUser; in CalculateStrata()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/Symbolize/
H A DSymbolize.h35 class ObjectFile; variable
76 // Overloads accepting ObjectFile does not support COFF currently
77 Expected<DILineInfo> symbolizeCode(const ObjectFile &Obj,
84 symbolizeInlinedCode(const ObjectFile &Obj,
93 Expected<DIGlobal> symbolizeData(const ObjectFile &Obj,
100 symbolizeFrame(const ObjectFile &Obj, object::SectionedAddress ModuleOffset);
109 findSymbol(const ObjectFile &Obj, StringRef Symbol, uint64_t Offset);
140 using ObjectPair = std::pair<const ObjectFile *, const ObjectFile *>;
161 Expected<SymbolizableModule *> getOrCreateModuleInfo(const ObjectFile
[all...]
/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DMachODump.h24 class ObjectFile; variable
77 void printMachOFileHeader(const object::ObjectFile *O);
78 void printMachOLoadCommands(const object::ObjectFile *O);
80 void printExportsTrie(const object::ObjectFile *O);
81 void printRebaseTable(object::ObjectFile *O);
82 void printBindTable(object::ObjectFile *O);
83 void printLazyBindTable(object::ObjectFile *O);
84 void printWeakBindTable(object::ObjectFile *O);
H A Dllvm-objdump.h17 #include "llvm/Object/ObjectFile.h"
77 const object::ObjectFile &O;
84 Dumper(const object::ObjectFile &O);
116 object::SectionFilter ToolSectionFilter(const llvm::object::ObjectFile &O,
120 void printSectionHeaders(object::ObjectFile &O);
121 void printSectionContents(const object::ObjectFile *O);
139 SymbolInfoTy createSymbolInfo(const object::ObjectFile &Obj,
/freebsd/contrib/llvm-project/lldb/include/lldb/Symbol/
H A DObjectFile.h42 class ObjectFile : public std::enable_shared_from_this<ObjectFile>,
99 ObjectFile(const lldb::ModuleSP &module_sp, const FileSpec *file_spec_ptr,
103 ObjectFile(const lldb::ModuleSP &module_sp, const lldb::ProcessSP &process_sp,
110 ~ObjectFile() override;
535 ObjectFile::BinaryType &type) { in GetCorefileMainBinaryInfo()
787 ObjectFile(const ObjectFile &) = delete;
788 const ObjectFile &operator=(const ObjectFile &) = delete;
794 template <> struct format_provider<lldb_private::ObjectFile::Type> {
795 static void format(const lldb_private::ObjectFile::Type &type,
799 template <> struct format_provider<lldb_private::ObjectFile::Strata> {
[all …]
/freebsd/contrib/llvm-project/lldb/include/lldb/Expression/
H A DObjectFileJIT.h26 virtual void PopulateSymtab(lldb_private::ObjectFile *obj_file,
28 virtual void PopulateSectionList(lldb_private::ObjectFile *obj_file,
33 class ObjectFileJIT : public ObjectFile {
51 static lldb_private::ObjectFile *
56 static lldb_private::ObjectFile *CreateMemoryInstance(
70 return ClassID == &ID || ObjectFile::isA(ClassID); in isA()
72 static bool classof(const ObjectFile *obj) { return obj->isA(&ID); } in classof()
111 ObjectFile::Type CalculateType() override;
113 ObjectFile::Strata CalculateStrata() override;
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/
H A DRuntimeDyld.h78 virtual object::OwningBinary<object::ObjectFile>
79 getObjectForDebug(const object::ObjectFile &Obj) const = 0;
183 const object::ObjectFile &Obj) {} in notifyObjectLoaded()
199 std::unique_ptr<LoadedObjectInfo> loadObject(const object::ObjectFile &O);
288 object::OwningBinary<object::ObjectFile> O,
291 unique_function<Error(const object::ObjectFile &Obj, LoadedObjectInfo &,
294 unique_function<void(object::OwningBinary<object::ObjectFile> O,
314 object::OwningBinary<object::ObjectFile> O,
317 unique_function<Error(const object::ObjectFile &Obj,
321 unique_function<void(object::OwningBinary<object::ObjectFile>,
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/JSON/
H A DObjectFileJSON.h18 class ObjectFileJSON : public ObjectFile {
29 static ObjectFile *
34 static ObjectFile *CreateMemoryInstance(const lldb::ModuleSP &module_sp,
51 return ClassID == &ID || ObjectFile::isA(ClassID); in isA()
53 static bool classof(const ObjectFile *obj) { return obj->isA(&ID); } in classof()
95 std::optional<ObjectFile::Type> type;
106 ObjectFile::Type m_type;
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldImpl.h341 virtual void setMipsABI(const ObjectFile &Obj) { in setMipsABI()
369 Error emitCommonSymbols(const ObjectFile &Obj,
377 Expected<unsigned> emitSection(const ObjectFile &Obj,
386 Expected<unsigned> findOrEmitSection(const ObjectFile &Obj,
415 const ObjectFile &Obj, ObjSectionToIDMap &ObjSectionToID,
426 Error computeTotalAllocSize(const ObjectFile &Obj, uint64_t &CodeSize,
432 unsigned computeGOTSize(const ObjectFile &Obj);
435 unsigned computeSectionStubBufSize(const ObjectFile &Obj,
439 Expected<ObjSectionToIDMap> loadObjectImpl(const object::ObjectFile &Obj);
472 loadObject(const object::ObjectFile &Obj) = 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.cpp19 #include "llvm/Object/ObjectFile.h"
39 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()
118 bool RuntimeDyldCOFF::isCompatibleFile(const object::ObjectFile &Obj) const { in isCompatibleFile()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/
H A DSymbolize.cpp82 LLVMSymbolizer::symbolizeCode(const ObjectFile &Obj, in symbolizeCode()
131 LLVMSymbolizer::symbolizeInlinedCode(const ObjectFile &Obj, in symbolizeInlinedCode()
176 LLVMSymbolizer::symbolizeData(const ObjectFile &Obj, in symbolizeData()
217 LLVMSymbolizer::symbolizeFrame(const ObjectFile &Obj, in symbolizeFrame()
265 LLVMSymbolizer::findSymbol(const ObjectFile &Obj, StringRef Symbol, in findSymbol()
317 bool getGNUDebuglinkContents(const ObjectFile *Obj, std::string &DebugName, in getGNUDebuglinkContents()
360 ObjectFile *LLVMSymbolizer::lookUpDsymFile(const std::string &ExePath, in lookUpDsymFile()
380 ObjectFile *DbgObj = DbgObjOrErr.get(); in lookUpDsymFile()
392 ObjectFile *LLVMSymbolizer::lookUpDebuglinkObject(const std::string &Path, in lookUpDebuglinkObject()
393 const ObjectFile *Obj, in lookUpDebuglinkObject()
[all …]
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/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,
/freebsd/contrib/llvm-project/llvm/tools/llvm-size/
H A Dllvm-size.cpp20 #include "llvm/Object/ObjectFile.h"
169 static bool considerForSize(ObjectFile *Obj, SectionRef Section) { in getRadixFmt()
185 static Expected<uint64_t> getCommonSize(ObjectFile *Obj) { in considerForSize()
351 static void printObjectSectionSizes(ObjectFile *Obj) { in printDarwinSegmentSizes()
509 /// Checks to see if the @p O ObjectFile is a Mach-O file and if it is and there in printObjectSectionSizes()
514 static bool checkMachOAndArchFlags(ObjectFile *O, StringRef Filename) { in printObjectSectionSizes()
559 if (ObjectFile *o = dyn_cast<ObjectFile>(&*ChildOrErr.get())) { in printFileSectionSizes()
593 Expected<std::unique_ptr<ObjectFile>> UO = I->getAsObjectFile(); in printFileSectionSizes()
595 if (ObjectFile * in printFileSectionSizes()
[all...]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/wasm/
H A DObjectFileWasm.h23 class ObjectFileWasm : public ObjectFile {
33 static ObjectFile *
38 static ObjectFile *CreateMemoryInstance(const lldb::ModuleSP &module_sp,
59 return ClassID == &ID || ObjectFile::isA(ClassID); in isA()
61 static bool classof(const ObjectFile *obj) { return obj->isA(&ID); } in classof()

1234567891011