/external/llvm/lib/ObjectYAML/ |
H A D | ObjectYAML.cpp | 21 YamlObjectFile &ObjectFile) { 23 if (ObjectFile.Elf) 24 MappingTraits<ELFYAML::Object>::mapping(IO, *ObjectFile.Elf); 25 if (ObjectFile.Coff) 26 MappingTraits<COFFYAML::Object>::mapping(IO, *ObjectFile.Coff); 27 if (ObjectFile.MachO) 28 MappingTraits<MachOYAML::Object>::mapping(IO, *ObjectFile.MachO); 29 if (ObjectFile.FatMachO) 31 *ObjectFile.FatMachO); 34 ObjectFile 20 mapping(IO &IO, YamlObjectFile &ObjectFile) argument [all...] |
/external/swiftshader/third_party/LLVM/lib/Object/ |
H A D | ObjectFile.cpp | 1 //===- ObjectFile.cpp - File format independent object file -----*- C++ -*-===// 10 // This file defines a file format independent ObjectFile class. 14 #include "llvm/Object/ObjectFile.h" 24 ObjectFile::ObjectFile(unsigned int Type, MemoryBuffer *source, error_code &ec) function in class:ObjectFile 28 ObjectFile *ObjectFile::createObjectFile(MemoryBuffer *Object) { 57 ObjectFile *ObjectFile::createObjectFile(StringRef ObjectPath) {
|
H A D | Object.cpp | 15 #include "llvm/Object/ObjectFile.h" 22 return wrap(ObjectFile::createObjectFile(unwrap(MemBuf))); 25 void LLVMDisposeObjectFile(LLVMObjectFileRef ObjectFile) { argument 26 delete unwrap(ObjectFile); 29 LLVMSectionIteratorRef LLVMGetSections(LLVMObjectFileRef ObjectFile) { argument 30 section_iterator SI = unwrap(ObjectFile)->begin_sections(); 38 LLVMBool LLVMIsSectionIteratorAtEnd(LLVMObjectFileRef ObjectFile, argument 40 return (*unwrap(SI) == unwrap(ObjectFile)->end_sections()) ? 1 : 0;
|
H A D | ELFObjectFile.cpp | 18 #include "llvm/Object/ObjectFile.h" 258 class ELFObjectFile : public ObjectFile { 1084 : ObjectFile(Binary::isELF, Object, ec) 1396 ObjectFile *ObjectFile::createELFObjectFile(MemoryBuffer *Object) { 1064 symname(addend < 0 ? � : �) << addend << �; fmt.flush(); Result.append(fmtbuf.begin(), fmtbuf.end()); } break; default: res = �; } break; default: res = �; } if (Result.empty()) Result.append(res.begin(), res.end()); return object_error::success; } template<support::endianness target_endianness, bool is64Bits> ELFObjectFile<target_endianness, is64Bits>::ELFObjectFile(MemoryBuffer *Object , error_code &ec) : ObjectFile(Binary::isELF, Object, ec) , SectionHeaderTable(0) , dot_shstrtab_sec(0) , dot_strtab_sec(0) { Header = reinterpret_cast<const Elf_Ehdr *>(base()); if (Header->e_shoff == 0) return; SectionHeaderTable = reinterpret_cast<const Elf_Shdr *>(base() + Header->e_shoff); uint64_t SectionTableSize = getNumSections() * Header->e_shentsize; if (!( (const uint8_t *)SectionHeaderTable + SectionTableSize <= base() + Data->getBufferSize())) report_fatal_error(�); const Elf_Shdr* SymbolTableSectionHeaderIndex = 0; const Elf_Shdr* sh = reinterpret_cast<const Elf_Shdr*>(SectionHeaderTable); for (uint64_t i = 0, e = getNumSections(); i != e; ++i) { if (sh->sh_type == ELF::SHT_SYMTAB_SHNDX) { if (SymbolTableSectionHeaderIndex) report_fatal_error(�); SymbolTableSectionHeaderIndex = sh; } if (sh->sh_type == ELF::SHT_SYMTAB) argument
|
/external/llvm/bindings/python/llvm/tests/ |
H A D | test_object.py | 2 from ..object import ObjectFile namespace 10 return ObjectFile(filename=source)
|
/external/llvm/bindings/ocaml/target/ |
H A D | llvm_target.ml | 45 | ObjectFile Constructor in type:CodeGenFileType/t
|
/external/llvm/lib/Object/ |
H A D | ObjectFile.cpp | 1 //===- ObjectFile.cpp - File format independent object file -----*- C++ -*-===// 10 // This file defines a file format independent ObjectFile class. 16 #include "llvm/Object/ObjectFile.h" 26 void ObjectFile::anchor() { } 28 ObjectFile::ObjectFile(unsigned int Type, MemoryBufferRef Source) function in class:ObjectFile 41 uint64_t ObjectFile::getSymbolValue(DataRefImpl Ref) const { 50 std::error_code ObjectFile::printSymbolName(raw_ostream &OS, 59 uint32_t ObjectFile::getSymbolAlignment(DataRefImpl DRI) const { return 0; } 61 bool ObjectFile [all...] |
H A D | Object.cpp | 17 #include "llvm/Object/ObjectFile.h" 22 inline OwningBinary<ObjectFile> *unwrap(LLVMObjectFileRef OF) { 23 return reinterpret_cast<OwningBinary<ObjectFile> *>(OF); 26 inline LLVMObjectFileRef wrap(const OwningBinary<ObjectFile> *OF) { 28 const_cast<OwningBinary<ObjectFile> *>(OF)); 61 // ObjectFile creation 64 Expected<std::unique_ptr<ObjectFile>> ObjOrErr( 65 ObjectFile::createObjectFile(Buf->getMemBufferRef())); 66 std::unique_ptr<ObjectFile> Obj; 73 auto *Ret = new OwningBinary<ObjectFile>(st 77 LLVMDisposeObjectFile(LLVMObjectFileRef ObjectFile) argument [all...] |
/external/llvm/bindings/python/llvm/ |
H A D | object.py | 18 symbols, and relocations. These are represented by the classes ObjectFile, 24 The only way to use this module is to start by creating an ObjectFile. You can 25 create an ObjectFile by loading a file (specified by its path) or by creating a 51 obj = ObjectFile(filename='/bin/ls') 94 "ObjectFile", 100 class ObjectFile(LLVMObject): class in inherits:LLVMObject 185 Section instances can currently only be created from an ObjectFile 294 assert isinstance(object_file, ObjectFile) 434 library.LLVMDisposeObjectFile.argtypes = [ObjectFile] 436 library.LLVMGetSections.argtypes = [ObjectFile] [all...] |
/external/llvm/tools/bugpoint/ |
H A D | ToolRunner.h | 48 enum FileType { AsmFile, ObjectFile, CFile }; enumerator in enum:llvm::CC::FileType
|
/external/swiftshader/third_party/LLVM/tools/bugpoint/ |
H A D | ToolRunner.h | 49 enum FileType { AsmFile, ObjectFile, CFile };
enumerator in enum:llvm::GCC::FileType
|
/external/llvm/include/llvm/Object/ |
H A D | ObjectFile.h | 1 //===- ObjectFile.h - File format independent object file -------*- C++ -*-===// 10 // This file declares a file format independent ObjectFile class. 29 class ObjectFile; 42 const ObjectFile *OwningObject; 47 RelocationRef(DataRefImpl RelocationP, const ObjectFile *Owner); 63 const ObjectFile *getObject() const; 72 const ObjectFile *OwningObject; 77 SectionRef(DataRefImpl SectionP, const ObjectFile *Owner); 110 const ObjectFile *getObject() const; 130 SymbolRef(DataRefImpl SymbolP, const ObjectFile *Owne 177 class ObjectFile : public SymbolicFile { class in namespace:llvm::object [all...] |
/external/llvm/tools/yaml2obj/ |
H A D | yaml2macho.cpp | 429 UniversalWriter(yaml::YamlObjectFile &ObjectFile) argument 430 : ObjectFile(ObjectFile), fileStart(0) {} 440 yaml::YamlObjectFile &ObjectFile; member in class:__anon13551::UniversalWriter 446 if (ObjectFile.MachO) { 447 MachOWriter Writer(*ObjectFile.MachO); 454 auto &FatFile = *ObjectFile.FatMachO; 468 auto &FatFile = *ObjectFile.FatMachO; 512 auto &FatFile = *ObjectFile.FatMachO;
|
/external/swiftshader/third_party/LLVM/include/llvm/Object/ |
H A D | ObjectFile.h | 1 //===- ObjectFile.h - File format independent object file -------*- C++ -*-===// 10 // This file declares a file format independent ObjectFile class. 27 class ObjectFile; 86 const ObjectFile *OwningObject; 100 SymbolRef(DataRefImpl SymbolP, const ObjectFile *Owner); 132 const ObjectFile *OwningObject; 139 RelocationRef(DataRefImpl RelocationP, const ObjectFile *Owner); 168 const ObjectFile *OwningObject; 175 SectionRef(DataRefImpl SectionP, const ObjectFile *Owner); 203 /// ObjectFile 206 class ObjectFile : public Binary { class in namespace:llvm::object [all...] |
/external/llvm/tools/sancov/ |
H A D | sancov.cc | 29 #include "llvm/Object/ObjectFile.h" 292 static std::vector<AddrInfo> getAddrInfo(const std::string &ObjectFile, argument 300 auto LineInfo = Symbolizer->symbolizeCode(ObjectFile, Addr); 307 auto InliningInfo = Symbolizer->symbolizeInlinedCode(ObjectFile, Addr); 325 findSanitizerCovFunctions(const object::ObjectFile &O) { 349 static void getObjectCoveragePoints(const object::ObjectFile &O, 424 function_ref<void(const object::ObjectFile &)> Fn) { 429 if (auto *O = dyn_cast<object::ObjectFile>(&*ChildOrErr.get())) 439 function_ref<void(const object::ObjectFile &)> Fn) { 448 else if (object::ObjectFile * 669 SourceCoverageData(std::string ObjectFile, const std::set<uint64_t> &Addrs) argument 856 readAndMerge(const std::string &ObjectFile, const std::vector<std::string> &FileNames) argument 1024 CoverageDataWithObjectFile(std::string ObjectFile, std::unique_ptr<CoverageData> Coverage) argument 1028 const std::string ObjectFile; member in class:__anon13544::CoverageDataWithObjectFile [all...] |