Home
last modified time | relevance | path

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

12345678910>>...15

/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.FatMachO) 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 __anon5cd6b8f50111::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 …]
/llvm-project/lldb/source/Symbol/
H A DObjectFile.cpp1 //===-- ObjectFile.cpp ----------------------------------------------------===//
9 #include "lldb/Symbol/ObjectFile.h"
32 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()
57 "ObjectFile::FindPlugin (module = %s, file = %p, file_offset = " in FindPlugin()
99 if (ObjectFile::SplitArchivePathWithObject(path_with_object, archive_file, in FindPlugin()
152 ObjectFileSP ObjectFile::FindPlugin(const lldb::ModuleSP &module_sp, in FindPlugin()
159 LLDB_SCOPED_TIMERF("ObjectFile::FindPlugin (module = " in FindPlugin()
187 bool ObjectFile
250 ObjectFile::ObjectFile(const lldb::ModuleSP &module_sp, ObjectFile() function in ObjectFile
274 ObjectFile::ObjectFile(const lldb::ModuleSP &module_sp, ObjectFile() function in ObjectFile
[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()
/llvm-project/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
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::isSectionBitcode(DataRefImpl Sec) const { in isSectionBitcode()
87 bool ObjectFile::isSectionStripped(DataRefImpl Sec) const { return false; } in isSectionStripped()
89 bool ObjectFile::isBerkeleyText(DataRefImpl Sec) const { in isBerkeleyText()
93 bool ObjectFile::isBerkeleyData(DataRefImpl Sec) const { in isBerkeleyData()
97 bool ObjectFile::isDebugSection(DataRefImpl Sec) const { return false; } in isDebugSection()
[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 …]
/llvm-project/llvm/include/llvm/Object/
H A DObjectFile.h1 //===- ObjectFile.h - File format independent object file -------*- C++ -*-===//
9 // This file declares a file format independent ObjectFile class.
41 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 *Owne
[all...]
/llvm-project/llvm/unittests/Object/
H A DGOFFObjectFileTest.cpp23 Expected<std::unique_ptr<ObjectFile>> GOFFObjOrErr = in constructValidGOFF()
24 object::ObjectFile::createGOFFObjectFile( in constructValidGOFF()
33 Expected<std::unique_ptr<ObjectFile>> GOFFObjOrErr = in constructInvalidGOFF()
34 object::ObjectFile::createGOFFObjectFile( in constructInvalidGOFF()
72 Expected<std::unique_ptr<ObjectFile>> GOFFObjOrErr = in TEST()
73 object::ObjectFile::createGOFFObjectFile( in TEST()
93 Expected<std::unique_ptr<ObjectFile>> GOFFObjOrErr = in TEST()
94 object::ObjectFile::createGOFFObjectFile( in TEST()
126 Expected<std::unique_ptr<ObjectFile>> GOFFObjOrErr = in TEST()
127 object::ObjectFile in TEST()
[all...]
/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()
/llvm-project/llvm/include/llvm/DebugInfo/Symbolize/
H A DSymbolize.h35 class ObjectFile; variable
77 // Overloads accepting ObjectFile does not support COFF currently
78 Expected<DILineInfo> symbolizeCode(const ObjectFile &Obj,
85 symbolizeInlinedCode(const ObjectFile &Obj,
94 Expected<DIGlobal> symbolizeData(const ObjectFile &Obj,
101 symbolizeFrame(const ObjectFile &Obj, object::SectionedAddress ModuleOffset);
109 findSymbol(const ObjectFile &Obj, StringRef Symbol, uint64_t Offset);
138 using ObjectPair = std::pair<const ObjectFile *, const ObjectFile *>;
159 Expected<SymbolizableModule *> getOrCreateModuleInfo(const ObjectFile
[all...]
/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"
76 const object::ObjectFile &O;
83 Dumper(const object::ObjectFile &O);
115 object::SectionFilter ToolSectionFilter(const llvm::object::ObjectFile &O,
119 void printSectionHeaders(object::ObjectFile &O);
120 void printSectionContents(const object::ObjectFile *O);
138 SymbolInfoTy createSymbolInfo(const object::ObjectFile &Obj,
/llvm-project/lldb/include/lldb/Symbol/
H A DObjectFile.h1 //===-- ObjectFile.h --------------------------------------------*- C++ -*-===//
29 /// \class ObjectFile ObjectFile.h "lldb/Symbol/ObjectFile.h"
37 /// An example of a partial file ObjectFile is one that contains information
42 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() overrid
[all...]
/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;
/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>,
/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;
/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldImpl.h22 #include "llvm/Object/ObjectFile.h"
342 virtual void setMipsABI(const ObjectFile &Obj) { in setMipsABI()
370 Error emitCommonSymbols(const ObjectFile &Obj,
378 Expected<unsigned> emitSection(const ObjectFile &Obj,
387 Expected<unsigned> findOrEmitSection(const ObjectFile &Obj,
416 const ObjectFile &Obj, ObjSectionToIDMap &ObjSectionToID,
427 Error computeTotalAllocSize(const ObjectFile &Obj, uint64_t &CodeSize,
433 unsigned computeGOTSize(const ObjectFile &Obj);
436 unsigned computeSectionStubBufSize(const ObjectFile &Obj,
440 Expected<ObjSectionToIDMap> loadObjectImpl(const object::ObjectFile
[all...]
H A DRuntimeDyldMachO.h60 const ObjectFile &BaseTObj,
79 const ObjectFile &BaseObjT, in getRelocationEntry()
93 getRelocationValueRef(const ObjectFile &BaseTObj,
125 loadObject(const object::ObjectFile &O) override;
129 bool isCompatibleFile(const object::ObjectFile &Obj) const override;
153 Error finalizeLoad(const ObjectFile &Obj,
H A DRuntimeDyldCOFF.cpp18 #include "llvm/Object/ObjectFile.h"
38 OwningBinary<ObjectFile>
39 getObjectForDebug(const ObjectFile &Obj) const override {
40 return OwningBinary<ObjectFile>(); in getObjectForDebug()
65 RuntimeDyldCOFF::loadObject(const object::ObjectFile &O) {
117 bool RuntimeDyldCOFF::isCompatibleFile(const object::ObjectFile &Obj) const {
/llvm-project/llvm/lib/DebugInfo/Symbolize/
H A DSymbolize.cpp83 LLVMSymbolizer::symbolizeCode(const ObjectFile &Obj, in symbolizeCode()
134 LLVMSymbolizer::symbolizeInlinedCode(const ObjectFile &Obj, in symbolizeInlinedCode()
179 LLVMSymbolizer::symbolizeData(const ObjectFile &Obj, in symbolizeData()
220 LLVMSymbolizer::symbolizeFrame(const ObjectFile &Obj, in symbolizeFrame()
268 LLVMSymbolizer::findSymbol(const ObjectFile &Obj, StringRef Symbol, in findSymbol()
320 bool getGNUDebuglinkContents(const ObjectFile *Obj, std::string &DebugName, in getGNUDebuglinkContents()
363 ObjectFile *LLVMSymbolizer::lookUpDsymFile(const std::string &ExePath, in lookUpDsymFile()
383 ObjectFile *DbgObj = DbgObjOrErr.get(); in lookUpDsymFile()
395 ObjectFile *LLVMSymbolizer::lookUpDebuglinkObject(const std::string &Path, in lookUpDebuglinkObject()
396 const ObjectFile *Ob in lookUpDebuglinkObject()
[all...]
/llvm-project/llvm/unittests/ObjCopy/
H A DObjCopyTest.cpp104 Expected<std::unique_ptr<ObjectFile>> createObjectFileFromYamlDescription( in createObjectFileFromYamlDescription()
109 std::unique_ptr<ObjectFile> Obj = in createObjectFileFromYamlDescription()
150 bool hasSection(ObjectFile &File, StringRef SectionName) { in hasSection()
165 void checkSectionData(ObjectFile &File, StringRef SectionName, in checkSectionData()
192 Expected<std::unique_ptr<ObjectFile>> Obj = in copySimpleInMemoryFileImpl()
245 Expected<std::unique_ptr<ObjectFile>> Obj = in addOrUpdateSectionToFileImpl()
272 checkSectionData(*static_cast<ObjectFile *>((*Result).get()), NewSectionName, in addOrUpdateSectionToFileImpl()
340 Expected<std::unique_ptr<ObjectFile>> Obj = in removeSectionByPatternImpl()
364 hasSection(*static_cast<ObjectFile *>((*Result).get()), SectionName)); in removeSectionByPatternImpl()
/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()
/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()
/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()
/llvm-project/llvm/tools/llvm-size/
H A Dllvm-size.cpp20 #include "llvm/Object/ObjectFile.h"
173 static bool considerForSize(ObjectFile *Obj, SectionRef Section) { in considerForSize()
189 static Expected<uint64_t> getCommonSize(ObjectFile *Obj) { in getCommonSize()
355 static void printObjectSectionSizes(ObjectFile *Obj) { in printObjectSectionSizes()
512 /// Checks to see if the @p O ObjectFile is a Mach-O file and if it is and there
517 static bool checkMachOAndArchFlags(ObjectFile *O, StringRef Filename) { in checkMachOAndArchFlags()
562 if (ObjectFile *o = dyn_cast<ObjectFile>(&*ChildOrErr.get())) { in printFileSectionSizes()
596 Expected<std::unique_ptr<ObjectFile>> UO = I->getAsObjectFile(); in printFileSectionSizes()
598 if (ObjectFile * in printFileSectionSizes()
[all...]

12345678910>>...15