Home
last modified time | relevance | path

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

123456

/netbsd-src/external/apache2/llvm/dist/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.MachO) in mapping()
30 MappingTraits<MachOYAML::Object>::mapping(IO, *ObjectFile.MachO); in mapping()
31 if (ObjectFile.FatMachO) in mapping()
33 *ObjectFile.FatMachO); in mapping()
37 ObjectFile.Arch.reset(new ArchYAML::Archive()); in mapping()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Object/
H A DObjectFile.cpp42 void ObjectFile::anchor() {} in anchor()
44 ObjectFile::ObjectFile(unsigned int Type, MemoryBufferRef Source) in ObjectFile() function in ObjectFile
57 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(StringRef SectionName) const { in isDebugSection()
[all …]
H A DObject.cpp23 inline OwningBinary<ObjectFile> *unwrap(LLVMObjectFileRef OF) { in unwrap()
24 return reinterpret_cast<OwningBinary<ObjectFile> *>(OF); in unwrap()
27 inline LLVMObjectFileRef wrap(const OwningBinary<ObjectFile> *OF) { in wrap()
29 const_cast<OwningBinary<ObjectFile> *>(OF)); in wrap()
140 Expected<std::unique_ptr<ObjectFile>> ObjOrErr( in LLVMMachOUniversalBinaryCopyObjectForArch()
150 auto OF = cast<ObjectFile>(unwrap(BR)); in LLVMObjectFileCopySectionIterator()
159 auto OF = cast<ObjectFile>(unwrap(BR)); in LLVMObjectFileIsSectionIteratorAtEnd()
164 auto OF = cast<ObjectFile>(unwrap(BR)); in LLVMObjectFileCopySymbolIterator()
173 auto OF = cast<ObjectFile>(unwrap(BR)); in LLVMObjectFileIsSymbolIteratorAtEnd()
180 Expected<std::unique_ptr<ObjectFile>> ObjOrErr( in LLVMCreateObjectFile()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/DebugInfo/Symbolize/
H A DSymbolize.h62 Expected<DILineInfo> symbolizeCode(const ObjectFile &Obj,
67 symbolizeInlinedCode(const ObjectFile &Obj,
73 Expected<DIGlobal> symbolizeData(const ObjectFile &Obj,
78 symbolizeFrame(const ObjectFile &Obj, object::SectionedAddress ModuleOffset);
91 using ObjectPair = std::pair<const ObjectFile *, const ObjectFile *>;
115 Expected<SymbolizableModule *> getOrCreateModuleInfo(const ObjectFile &Obj);
118 createModuleInfo(const ObjectFile *Obj,
122 ObjectFile *lookUpDsymFile(const std::string &Path,
125 ObjectFile *lookUpDebuglinkObject(const std::string &Path,
126 const ObjectFile *Obj,
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Object/
H A DObjectFile.h41 class ObjectFile; variable
53 const ObjectFile *OwningObject = nullptr;
57 RelocationRef(DataRefImpl RelocationP, const ObjectFile *Owner);
73 const ObjectFile *getObject() const;
84 const ObjectFile *OwningObject = nullptr;
88 SectionRef(DataRefImpl SectionP, const ObjectFile *Owner);
138 const ObjectFile *getObject() const;
178 SymbolRef(DataRefImpl SymbolP, const ObjectFile *Owner);
180 assert(isa<ObjectFile>(BasicSymbolRef::getObject())); in SymbolRef()
201 const ObjectFile *getObject() const;
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objdump/
H A DMachODump.h23 class ObjectFile; variable
66 void printMachOFileHeader(const object::ObjectFile *O);
67 void printMachOLoadCommands(const object::ObjectFile *O);
69 void printExportsTrie(const object::ObjectFile *O);
70 void printRebaseTable(object::ObjectFile *O);
71 void printBindTable(object::ObjectFile *O);
72 void printLazyBindTable(object::ObjectFile *O);
73 void printWeakBindTable(object::ObjectFile *O);
H A Dllvm-objdump.h104 SectionFilter(FilterPredicate P, llvm::object::ObjectFile const &O) in SectionFilter()
117 llvm::object::ObjectFile const &Object;
128 SectionFilter ToolSectionFilter(llvm::object::ObjectFile const &O,
132 void printRelocations(const object::ObjectFile *O);
133 void printDynamicRelocations(const object::ObjectFile *O);
134 void printSectionHeaders(const object::ObjectFile *O);
135 void printSectionContents(const object::ObjectFile *O);
136 void printSymbolTable(const object::ObjectFile *O, StringRef ArchiveName,
139 void printSymbol(const object::ObjectFile *O, const object::SymbolRef &Symbol,
157 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);
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ExecutionEngine/
H A DRuntimeDyld.h78 virtual object::OwningBinary<object::ObjectFile>
79 getObjectForDebug(const object::ObjectFile &Obj) const = 0;
170 const object::ObjectFile &Obj) {} in notifyObjectLoaded()
186 std::unique_ptr<LoadedObjectInfo> loadObject(const object::ObjectFile &O);
275 object::OwningBinary<object::ObjectFile> O,
278 unique_function<Error(const object::ObjectFile &Obj, LoadedObjectInfo &,
281 unique_function<void(object::OwningBinary<object::ObjectFile> O,
301 object::OwningBinary<object::ObjectFile> O,
304 unique_function<Error(const object::ObjectFile &Obj,
308 unique_function<void(object::OwningBinary<object::ObjectFile>,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/DebugInfo/Symbolize/
H A DSymbolize.cpp72 LLVMSymbolizer::symbolizeCode(const ObjectFile &Obj, in symbolizeCode()
115 LLVMSymbolizer::symbolizeInlinedCode(const ObjectFile &Obj, in symbolizeInlinedCode()
154 LLVMSymbolizer::symbolizeData(const ObjectFile &Obj, in symbolizeData()
189 LLVMSymbolizer::symbolizeFrame(const ObjectFile &Obj, in symbolizeFrame()
277 bool getGNUDebuglinkContents(const ObjectFile *Obj, std::string &DebugName, in getGNUDebuglinkContents()
395 ObjectFile *LLVMSymbolizer::lookUpDsymFile(const std::string &ExePath, in lookUpDsymFile()
414 ObjectFile *DbgObj = DbgObjOrErr.get(); in lookUpDsymFile()
426 ObjectFile *LLVMSymbolizer::lookUpDebuglinkObject(const std::string &Path, in lookUpDebuglinkObject()
427 const ObjectFile *Obj, in lookUpDebuglinkObject()
446 ObjectFile *LLVMSymbolizer::lookUpBuildIDObject(const std::string &Path, in lookUpBuildIDObject()
[all …]
/netbsd-src/external/apache2/llvm/dist/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,
409 const ObjectFile &Obj, ObjSectionToIDMap &ObjSectionToID,
420 Error computeTotalAllocSize(const ObjectFile &Obj,
426 unsigned computeGOTSize(const ObjectFile &Obj);
429 unsigned computeSectionStubBufSize(const ObjectFile &Obj,
433 Expected<ObjSectionToIDMap> loadObjectImpl(const object::ObjectFile &Obj);
462 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.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()
H A DRuntimeDyldELF.h89 void setMipsABI(const ObjectFile &Obj) override;
174 loadObject(const object::ObjectFile &O) override;
179 const ObjectFile &Obj,
182 bool isCompatibleFile(const object::ObjectFile &Obj) const override;
184 Error finalizeLoad(const ObjectFile &Obj,
H A DRuntimeDyldMachO.cpp36 OwningBinary<ObjectFile>
37 getObjectForDebug(const ObjectFile &Obj) const override { in getObjectForDebug()
38 return OwningBinary<ObjectFile>(); in getObjectForDebug()
56 const ObjectFile &BaseObjT, in processScatteredVANILLA()
98 const ObjectFile &BaseTObj, const relocation_iterator &RI, in getRelocationValueRef()
222 bool RuntimeDyldMachO::isCompatibleFile(const object::ObjectFile &Obj) const { in isCompatibleFile()
228 RuntimeDyldMachOCRTPBase<Impl>::finalizeLoad(const ObjectFile &Obj, in finalizeLoad()
370 RuntimeDyldMachO::loadObject(const object::ObjectFile &O) { in loadObject()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-size/
H A Dllvm-size.cpp184 static bool considerForSize(ObjectFile *Obj, SectionRef Section) { in considerForSize()
200 static Expected<uint64_t> getCommonSize(ObjectFile *Obj) { in getCommonSize()
366 static void printObjectSectionSizes(ObjectFile *Obj) { in printObjectSectionSizes()
529 static bool checkMachOAndArchFlags(ObjectFile *O, StringRef Filename) { in checkMachOAndArchFlags()
574 if (ObjectFile *o = dyn_cast<ObjectFile>(&*ChildOrErr.get())) { in printFileSectionSizes()
606 Expected<std::unique_ptr<ObjectFile>> UO = I->getAsObjectFile(); in printFileSectionSizes()
608 if (ObjectFile *o = dyn_cast<ObjectFile>(&*UO.get())) { in printFileSectionSizes()
646 if (ObjectFile *o = dyn_cast<ObjectFile>(&*ChildOrErr.get())) { in printFileSectionSizes()
697 Expected<std::unique_ptr<ObjectFile>> UO = I->getAsObjectFile(); in printFileSectionSizes()
699 if (ObjectFile *o = dyn_cast<ObjectFile>(&*UO.get())) { in printFileSectionSizes()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm-c/
H A DObject.h209 void LLVMDisposeObjectFile(LLVMObjectFileRef ObjectFile);
212 LLVMSectionIteratorRef LLVMGetSections(LLVMObjectFileRef ObjectFile);
215 LLVMBool LLVMIsSectionIteratorAtEnd(LLVMObjectFileRef ObjectFile,
219 LLVMSymbolIteratorRef LLVMGetSymbols(LLVMObjectFileRef ObjectFile);
222 LLVMBool LLVMIsSymbolIteratorAtEnd(LLVMObjectFileRef ObjectFile,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/
H A DGDBRegistrationListener.cpp76 OwningBinary<ObjectFile> Obj) in RegisteredObjectInfo()
81 OwningBinary<ObjectFile> Obj;
108 void notifyObjectLoaded(ObjectKey K, const ObjectFile &Obj,
157 ObjectKey K, const ObjectFile &Obj, in notifyObjectLoaded()
160 OwningBinary<ObjectFile> DebugObj = L.getObjectForDebug(Obj); in notifyObjectLoaded()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-dwarfdump/
H A Dllvm-dwarfdump.h34 void calculateSectionSizes(const object::ObjectFile &Obj, SectionSizes &Sizes,
37 bool collectStatsForObjectFile(object::ObjectFile &Obj, DWARFContext &DICtx,
39 bool collectObjectSectionSizes(object::ObjectFile &Obj, DWARFContext &DICtx,
/netbsd-src/external/apache2/llvm/dist/llvm/bindings/python/llvm/
H A Dobject.py99 class ObjectFile(LLVMObject): class
293 assert isinstance(object_file, ObjectFile)
433 library.LLVMDisposeObjectFile.argtypes = [ObjectFile]
435 library.LLVMGetSections.argtypes = [ObjectFile]
440 library.LLVMIsSectionIteratorAtEnd.argtypes = [ObjectFile, c_object_p]
447 library.LLVMGetSymbols.argtypes = [ObjectFile]
452 library.LLVMIsSymbolIteratorAtEnd.argtypes = [ObjectFile, c_object_p]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-dwarfdump/fuzzer/
H A Dllvm-dwarfdump-fuzzer.cpp26 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = in LLVMFuzzerTestOneInput()
27 ObjectFile::createObjectFile(Buff->getMemBufferRef()); in LLVMFuzzerTestOneInput()
32 ObjectFile &Obj = *ObjOrErr.get(); in LLVMFuzzerTestOneInput()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/sancov/
H A Dsancov.cpp520 getCoveragePoints(const std::string &ObjectFile, in getCoveragePoints() argument
536 auto LineInfo = Symbolizer->symbolizeCode(ObjectFile, ModuleAddress); in getCoveragePoints()
540 Symbolizer->symbolizeInlinedCode(ObjectFile, ModuleAddress); in getCoveragePoints()
557 auto LineInfo = Symbolizer->symbolizeCode(ObjectFile, ModuleAddress); in getCoveragePoints()
572 Symbolizer->symbolizeInlinedCode(ObjectFile, ModuleAddress); in getCoveragePoints()
646 findSanitizerCovFunctions(const object::ObjectFile &O) { in findSanitizerCovFunctions()
706 static void getObjectCoveragePoints(const object::ObjectFile &O, in getObjectCoveragePoints()
780 function_ref<void(const object::ObjectFile &)> Fn) { in visitObjectFiles()
785 if (auto *O = dyn_cast<object::ObjectFile>(&*ChildOrErr.get())) in visitObjectFiles()
795 function_ref<void(const object::ObjectFile &)> Fn) { in visitObjectFiles()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-exegesis/lib/
H A DAssembler.cpp253 object::OwningBinary<object::ObjectFile>
259 std::unique_ptr<object::ObjectFile> Obj = in getObjectFromBuffer()
260 cantFail(object::ObjectFile::createObjectFile(Buffer->getMemBufferRef())); in getObjectFromBuffer()
262 return object::OwningBinary<object::ObjectFile>(std::move(Obj), in getObjectFromBuffer()
266 object::OwningBinary<object::ObjectFile> getObjectFromFile(StringRef Filename) { in getObjectFromFile()
267 return cantFail(object::ObjectFile::createObjectFile(Filename)); in getObjectFromFile()
295 object::OwningBinary<object::ObjectFile> &&ObjectFileHolder) in ExecutableFunction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/IntelJITEvents/
H A DIntelJITEventListener.cpp73 int fillSectionInformation(const ObjectFile &Obj, in fillSectionInformation()
130 std::map<ObjectKey, OwningBinary<ObjectFile>> DebugObjects;
142 void notifyObjectLoaded(ObjectKey Key, const ObjectFile &Obj,
193 ObjectKey Key, const ObjectFile &Obj, in notifyObjectLoaded()
230 OwningBinary<ObjectFile> DebugObjOwner = L.getObjectForDebug(Obj); in notifyObjectLoaded()
231 const ObjectFile *DebugObj = DebugObjOwner.getBinary(); in notifyObjectLoaded()
354 const ObjectFile &DebugObj = *DebugObjects[Key].getBinary(); in notifyFreeingObject()

123456