Home
last modified time | relevance | path

Searched refs:file_magic (Results 1 – 25 of 84) sorted by relevance

1234

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Object/
DSymbolicFile.cpp39 SymbolicFile::createSymbolicFile(MemoryBufferRef Object, file_magic Type, in createSymbolicFile()
42 if (Type == file_magic::unknown) in createSymbolicFile()
46 case file_magic::bitcode: in createSymbolicFile()
50 case file_magic::unknown: in createSymbolicFile()
51 case file_magic::archive: in createSymbolicFile()
52 case file_magic::coff_cl_gl_object: in createSymbolicFile()
53 case file_magic::macho_universal_binary: in createSymbolicFile()
54 case file_magic::windows_resource: in createSymbolicFile()
55 case file_magic::pdb: in createSymbolicFile()
57 case file_magic::elf: in createSymbolicFile()
[all …]
DBinary.cpp47 file_magic Type = identify_magic(Buffer.getBuffer()); in createBinary()
50 case file_magic::archive: in createBinary()
52 case file_magic::elf: in createBinary()
53 case file_magic::elf_relocatable: in createBinary()
54 case file_magic::elf_executable: in createBinary()
55 case file_magic::elf_shared_object: in createBinary()
56 case file_magic::elf_core: in createBinary()
57 case file_magic::macho_object: in createBinary()
58 case file_magic::macho_executable: in createBinary()
59 case file_magic::macho_fixed_virtual_memory_shared_lib: in createBinary()
[all …]
DObjectFile.cpp110 ObjectFile::createObjectFile(MemoryBufferRef Object, file_magic Type) { in createObjectFile()
112 if (Type == file_magic::unknown) in createObjectFile()
116 case file_magic::unknown: in createObjectFile()
117 case file_magic::bitcode: in createObjectFile()
118 case file_magic::coff_cl_gl_object: in createObjectFile()
119 case file_magic::archive: in createObjectFile()
120 case file_magic::macho_universal_binary: in createObjectFile()
121 case file_magic::windows_resource: in createObjectFile()
122 case file_magic::pdb: in createObjectFile()
124 case file_magic::elf: in createObjectFile()
[all …]
DIRObjectFile.cpp91 file_magic Type = identify_magic(Object.getBuffer()); in findBitcodeInMemBuffer()
93 case file_magic::bitcode: in findBitcodeInMemBuffer()
95 case file_magic::elf_relocatable: in findBitcodeInMemBuffer()
96 case file_magic::macho_object: in findBitcodeInMemBuffer()
97 case file_magic::coff_object: { in findBitcodeInMemBuffer()
DArchiveWriter.cpp378 object::SymbolicFile::createSymbolicFile(Buf, llvm::file_magic::unknown, in getSymbols()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/BinaryFormat/
DMagic.cpp35 file_magic llvm::identify_magic(StringRef Magic) { in identify_magic()
37 return file_magic::unknown; in identify_magic()
45 return file_magic::coff_import_library; in identify_magic()
49 return file_magic::coff_object; in identify_magic()
51 return file_magic::coff_cl_gl_object; in identify_magic()
52 return file_magic::coff_import_library; in identify_magic()
57 return file_magic::windows_resource; in identify_magic()
60 return file_magic::coff_object; in identify_magic()
62 return file_magic::wasm_object; in identify_magic()
67 return file_magic::bitcode; in identify_magic()
[all …]
/external/llvm/lib/Object/
DSymbolicFile.cpp30 MemoryBufferRef Object, sys::fs::file_magic Type, LLVMContext *Context) { in createSymbolicFile()
32 if (Type == sys::fs::file_magic::unknown) in createSymbolicFile()
36 case sys::fs::file_magic::bitcode: in createSymbolicFile()
40 case sys::fs::file_magic::unknown: in createSymbolicFile()
41 case sys::fs::file_magic::archive: in createSymbolicFile()
42 case sys::fs::file_magic::macho_universal_binary: in createSymbolicFile()
43 case sys::fs::file_magic::windows_resource: in createSymbolicFile()
45 case sys::fs::file_magic::elf: in createSymbolicFile()
46 case sys::fs::file_magic::elf_executable: in createSymbolicFile()
47 case sys::fs::file_magic::elf_shared_object: in createSymbolicFile()
[all …]
DBinary.cpp41 sys::fs::file_magic Type = sys::fs::identify_magic(Buffer.getBuffer()); in createBinary()
44 case sys::fs::file_magic::archive: in createBinary()
46 case sys::fs::file_magic::elf: in createBinary()
47 case sys::fs::file_magic::elf_relocatable: in createBinary()
48 case sys::fs::file_magic::elf_executable: in createBinary()
49 case sys::fs::file_magic::elf_shared_object: in createBinary()
50 case sys::fs::file_magic::elf_core: in createBinary()
51 case sys::fs::file_magic::macho_object: in createBinary()
52 case sys::fs::file_magic::macho_executable: in createBinary()
53 case sys::fs::file_magic::macho_fixed_virtual_memory_shared_lib: in createBinary()
[all …]
DObjectFile.cpp73 ObjectFile::createObjectFile(MemoryBufferRef Object, sys::fs::file_magic Type) { in createObjectFile()
75 if (Type == sys::fs::file_magic::unknown) in createObjectFile()
79 case sys::fs::file_magic::unknown: in createObjectFile()
80 case sys::fs::file_magic::bitcode: in createObjectFile()
81 case sys::fs::file_magic::archive: in createObjectFile()
82 case sys::fs::file_magic::macho_universal_binary: in createObjectFile()
83 case sys::fs::file_magic::windows_resource: in createObjectFile()
85 case sys::fs::file_magic::elf: in createObjectFile()
86 case sys::fs::file_magic::elf_relocatable: in createObjectFile()
87 case sys::fs::file_magic::elf_executable: in createObjectFile()
[all …]
DModuleSummaryIndexObjectFile.cpp52 sys::fs::file_magic Type = sys::fs::identify_magic(Object.getBuffer()); in findBitcodeInMemBuffer()
54 case sys::fs::file_magic::bitcode: in findBitcodeInMemBuffer()
56 case sys::fs::file_magic::elf_relocatable: in findBitcodeInMemBuffer()
57 case sys::fs::file_magic::macho_object: in findBitcodeInMemBuffer()
58 case sys::fs::file_magic::coff_object: { in findBitcodeInMemBuffer()
DIRObjectFile.cpp292 sys::fs::file_magic Type = sys::fs::identify_magic(Object.getBuffer()); in findBitcodeInMemBuffer()
294 case sys::fs::file_magic::bitcode: in findBitcodeInMemBuffer()
296 case sys::fs::file_magic::elf_relocatable: in findBitcodeInMemBuffer()
297 case sys::fs::file_magic::macho_object: in findBitcodeInMemBuffer()
298 case sys::fs::file_magic::coff_object: { in findBitcodeInMemBuffer()
DArchiveWriter.cpp252 MemberBuffer, sys::fs::file_magic::unknown, &Context); in writeSymbolTable()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/BinaryFormat/
DMagic.h21 struct file_magic { struct
54 file_magic() = default; argument
55 file_magic(Impl V) : V(V) {} in file_magic() argument
63 file_magic identify_magic(StringRef magic); argument
71 std::error_code identify_magic(const Twine &path, file_magic &result);
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DPath.cpp989 file_magic identify_magic(StringRef Magic) { in identify_magic()
991 return file_magic::unknown; in identify_magic()
998 return file_magic::coff_import_library; in identify_magic()
1002 return file_magic::coff_object; in identify_magic()
1004 return file_magic::coff_cl_gl_object; in identify_magic()
1005 return file_magic::coff_import_library; in identify_magic()
1009 return file_magic::windows_resource; in identify_magic()
1012 return file_magic::coff_object; in identify_magic()
1014 return file_magic::wasm_object; in identify_magic()
1019 return file_magic::bitcode; in identify_magic()
[all …]
/external/llvm/lib/Support/
DPath.cpp982 file_magic identify_magic(StringRef Magic) { in identify_magic()
984 return file_magic::unknown; in identify_magic()
992 return file_magic::coff_import_library; in identify_magic()
997 return file_magic::coff_import_library; in identify_magic()
1001 return file_magic::coff_import_library; in identify_magic()
1002 return file_magic::coff_object; in identify_magic()
1008 return file_magic::windows_resource; in identify_magic()
1011 return file_magic::coff_object; in identify_magic()
1017 return file_magic::bitcode; in identify_magic()
1021 return file_magic::bitcode; in identify_magic()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/BinaryFormat/
DTestFileMagic.cpp92 file_magic magic; in TEST_F()
94 #define DEFINE(magic) {#magic, magic, sizeof(magic), file_magic::magic} in TEST_F()
99 file_magic::coff_object}, in TEST_F()
117 file_magic::unknown}, in TEST_F()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ToolDrivers/llvm-lib/
DLibDriver.cpp154 file_magic Magic = identify_magic(MOrErr->Buf->getBuffer()); in libDriverMain()
155 if (Magic != file_magic::coff_object && Magic != file_magic::bitcode && in libDriverMain()
156 Magic != file_magic::windows_resource) { in libDriverMain()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Object/
DSymbolicFile.h166 createSymbolicFile(MemoryBufferRef Object, llvm::file_magic Type,
171 return createSymbolicFile(Object, llvm::file_magic::unknown, nullptr); in createSymbolicFile()
DObjectFile.h316 createObjectFile(MemoryBufferRef Object, llvm::file_magic Type);
319 return createObjectFile(Object, llvm::file_magic::unknown); in createObjectFile()
/external/llvm/include/llvm/Object/
DSymbolicFile.h158 createSymbolicFile(MemoryBufferRef Object, sys::fs::file_magic Type,
163 return createSymbolicFile(Object, sys::fs::file_magic::unknown, nullptr); in createSymbolicFile()
DObjectFile.h285 createObjectFile(MemoryBufferRef Object, sys::fs::file_magic Type);
288 return createObjectFile(Object, sys::fs::file_magic::unknown); in createObjectFile()
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DFileSystem.h240 struct file_magic { struct
274 file_magic() : V(unknown) {} in file_magic() argument
275 file_magic(Impl V) : V(V) {} in file_magic() function
660 file_magic identify_magic(StringRef magic);
668 std::error_code identify_magic(const Twine &path, file_magic &result);
/external/llvm/include/llvm/Support/
DFileSystem.h239 struct file_magic { struct
271 file_magic() : V(unknown) {} in file_magic() argument
272 file_magic(Impl V) : V(V) {} in file_magic() function
649 file_magic identify_magic(StringRef magic);
657 std::error_code identify_magic(const Twine &path, file_magic &result);
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-pdbutil/
DInputFile.cpp252 file_magic Magic; in open()
257 if (Magic == file_magic::coff_object) { in open()
267 if (Magic == file_magic::pdb) { in open()
/external/llvm/unittests/Support/
DPath.cpp773 fs::file_magic magic; in TEST_F()
776 { #magic, magic, sizeof(magic), fs::file_magic::magic } in TEST_F()
780 { "coff_bigobj", coff_bigobj, sizeof(coff_bigobj), fs::file_magic::coff_object }, in TEST_F()

1234