| /llvm-project-15.0.7/llvm/include/llvm/BinaryFormat/ |
| H A D | Magic.h | 70 file_magic identify_magic(StringRef magic); 78 std::error_code identify_magic(const Twine &path, file_magic &result);
|
| /llvm-project-15.0.7/llvm/lib/BinaryFormat/ |
| H A D | Magic.cpp | 33 file_magic llvm::identify_magic(StringRef Magic) { in identify_magic() function in llvm 245 std::error_code llvm::identify_magic(const Twine &Path, file_magic &Result) { in identify_magic() function in llvm 252 Result = identify_magic(FileBuffer->getBuffer()); in identify_magic()
|
| /llvm-project-15.0.7/llvm/unittests/Object/ |
| H A D | DXContainerTest.cpp | 27 EXPECT_EQ(identify_magic(Buffer), file_magic::dxcontainer_object); in TEST() 31 EXPECT_EQ(identify_magic(Buffer), file_magic::dxcontainer_object); in TEST()
|
| /llvm-project-15.0.7/lld/MachO/ |
| H A D | ObjC.cpp | 59 switch (identify_magic(mb.getBuffer())) { in hasObjCSection()
|
| H A D | DriverUtils.cpp | 219 file_magic magic = identify_magic(mbref.getBuffer()); in loadDylib()
|
| /llvm-project-15.0.7/openmp/libomptarget/plugins/common/elf_common/ |
| H A D | elf_common.cpp | 40 auto Magic = identify_magic(StrBuf); in withBytesAsElf()
|
| /llvm-project-15.0.7/bolt/lib/RuntimeLibs/ |
| H A D | RuntimeLibrary.cpp | 51 file_magic Magic = identify_magic(B->getBuffer()); in loadLibrary()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | COFF.cpp | 50 auto Magic = identify_magic(ObjectBuffer.getBuffer()); in createLinkGraphFromCOFFObject()
|
| /llvm-project-15.0.7/llvm/lib/Object/ |
| H A D | Binary.cpp | 48 file_magic Type = identify_magic(Buffer.getBuffer()); in createBinary()
|
| H A D | SymbolicFile.cpp | 41 Type = identify_magic(Data); in createSymbolicFile()
|
| H A D | OffloadBinary.cpp | 27 if (identify_magic(Buf.getBuffer()) != file_magic::offload_binary) in create()
|
| H A D | IRObjectFile.cpp | 91 file_magic Type = identify_magic(Object.getBuffer()); in findBitcodeInMemBuffer()
|
| H A D | ObjectFile.cpp | 137 Type = identify_magic(Data); in createObjectFile()
|
| /llvm-project-15.0.7/llvm/tools/obj2yaml/ |
| H A D | dxcontainer2yaml.cpp | 21 assert(file_magic::dxcontainer_object == identify_magic(Source.getBuffer())); in dumpDXContainer()
|
| H A D | archive2yaml.cpp | 21 assert(file_magic::archive == identify_magic(Buffer)); in dump()
|
| H A D | obj2yaml.cpp | 62 switch (identify_magic(MemBuf.getBuffer())) { in dumpInput()
|
| /llvm-project-15.0.7/llvm/unittests/BinaryFormat/ |
| H A D | TestFileMagic.cpp | 141 EXPECT_EQ(i->magic, identify_magic(magic)); in TEST_F()
|
| /llvm-project-15.0.7/llvm/lib/ToolDrivers/llvm-lib/ |
| H A D | LibDriver.cpp | 119 if (identify_magic(MaybeBuf.get()->getBuffer()) == file_magic::archive) { in doList() 183 file_magic Magic = identify_magic(MB.getBuffer()); in appendFile()
|
| /llvm-project-15.0.7/clang/tools/clang-offload-packager/ |
| H A D | ClangOffloadPackager.cpp | 104 if (identify_magic((*ObjectOrErr)->getBuffer()) == file_magic::bitcode) in main()
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | NativeSession.cpp | 102 auto EC = identify_magic(PdbPath, Magic); in loadPdbFile() 157 auto EC = identify_magic(PdbPath.get(), Magic); in createFromExe()
|
| /llvm-project-15.0.7/lld/wasm/ |
| H A D | InputFiles.h | 186 return identify_magic(mb.getBuffer()) == llvm::file_magic::bitcode; in isBitcode()
|
| /llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/PDB/ |
| H A D | ObjectFilePDB.cpp | 165 auto ec = llvm::identify_magic(PdbPath, magic); in loadPDBFile()
|
| /llvm-project-15.0.7/llvm/tools/llvm-cvtres/ |
| H A D | llvm-cvtres.cpp | 179 file_magic Type = identify_magic(Buffer->getMemBufferRef().getBuffer()); in main()
|
| /llvm-project-15.0.7/llvm/tools/llvm-libtool-darwin/ |
| H A D | llvm-libtool-darwin.cpp | 309 file_magic Magic = identify_magic(NewMember.Buf->getBuffer()); in operator ()() 434 file_magic Magic = identify_magic(NewMember.Buf->getBuffer()); in addChildMember()
|
| /llvm-project-15.0.7/clang/tools/clang-linker-wrapper/ |
| H A D | ClangLinkerWrapper.cpp | 408 file_magic Type = identify_magic(Buffer->getBuffer()); in extractFromBuffer() 879 file_magic Type = identify_magic(Buffer.getBuffer()); in linkBitcodeFiles() 1263 return identify_magic(F.getBinary()->getImage()) == file_magic::bitcode; in getLinkerArgs() 1430 identify_magic((*BufferOrErr)->getBuffer()) == file_magic::archive; in getDeviceInput()
|