Home
last modified time | relevance | path

Searched refs:identify_magic (Results 1 – 25 of 44) sorted by relevance

12

/llvm-project-15.0.7/llvm/include/llvm/BinaryFormat/
H A DMagic.h70 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 DMagic.cpp33 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 DDXContainerTest.cpp27 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 DObjC.cpp59 switch (identify_magic(mb.getBuffer())) { in hasObjCSection()
H A DDriverUtils.cpp219 file_magic magic = identify_magic(mbref.getBuffer()); in loadDylib()
/llvm-project-15.0.7/openmp/libomptarget/plugins/common/elf_common/
H A Delf_common.cpp40 auto Magic = identify_magic(StrBuf); in withBytesAsElf()
/llvm-project-15.0.7/bolt/lib/RuntimeLibs/
H A DRuntimeLibrary.cpp51 file_magic Magic = identify_magic(B->getBuffer()); in loadLibrary()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/
H A DCOFF.cpp50 auto Magic = identify_magic(ObjectBuffer.getBuffer()); in createLinkGraphFromCOFFObject()
/llvm-project-15.0.7/llvm/lib/Object/
H A DBinary.cpp48 file_magic Type = identify_magic(Buffer.getBuffer()); in createBinary()
H A DSymbolicFile.cpp41 Type = identify_magic(Data); in createSymbolicFile()
H A DOffloadBinary.cpp27 if (identify_magic(Buf.getBuffer()) != file_magic::offload_binary) in create()
H A DIRObjectFile.cpp91 file_magic Type = identify_magic(Object.getBuffer()); in findBitcodeInMemBuffer()
H A DObjectFile.cpp137 Type = identify_magic(Data); in createObjectFile()
/llvm-project-15.0.7/llvm/tools/obj2yaml/
H A Ddxcontainer2yaml.cpp21 assert(file_magic::dxcontainer_object == identify_magic(Source.getBuffer())); in dumpDXContainer()
H A Darchive2yaml.cpp21 assert(file_magic::archive == identify_magic(Buffer)); in dump()
H A Dobj2yaml.cpp62 switch (identify_magic(MemBuf.getBuffer())) { in dumpInput()
/llvm-project-15.0.7/llvm/unittests/BinaryFormat/
H A DTestFileMagic.cpp141 EXPECT_EQ(i->magic, identify_magic(magic)); in TEST_F()
/llvm-project-15.0.7/llvm/lib/ToolDrivers/llvm-lib/
H A DLibDriver.cpp119 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 DClangOffloadPackager.cpp104 if (identify_magic((*ObjectOrErr)->getBuffer()) == file_magic::bitcode) in main()
/llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/
H A DNativeSession.cpp102 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 DInputFiles.h186 return identify_magic(mb.getBuffer()) == llvm::file_magic::bitcode; in isBitcode()
/llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/PDB/
H A DObjectFilePDB.cpp165 auto ec = llvm::identify_magic(PdbPath, magic); in loadPDBFile()
/llvm-project-15.0.7/llvm/tools/llvm-cvtres/
H A Dllvm-cvtres.cpp179 file_magic Type = identify_magic(Buffer->getMemBufferRef().getBuffer()); in main()
/llvm-project-15.0.7/llvm/tools/llvm-libtool-darwin/
H A Dllvm-libtool-darwin.cpp309 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 DClangLinkerWrapper.cpp408 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()

12