Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DMagic.h67 file_magic identify_magic(StringRef magic);
75 std::error_code identify_magic(const Twine &path, file_magic &result);
/freebsd-13.1/contrib/llvm-project/llvm/lib/BinaryFormat/
H A DMagic.cpp35 file_magic llvm::identify_magic(StringRef Magic) { in identify_magic() function in llvm
230 std::error_code llvm::identify_magic(const Twine &Path, file_magic &Result) { in identify_magic() function in llvm
237 Result = identify_magic(FileBuffer->getBuffer()); in identify_magic()
/freebsd-13.1/contrib/llvm-project/lld/lib/Core/
H A DReader.cpp21 using llvm::identify_magic;
39 file_magic fileType = identify_magic(content); in loadFile()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Object/
H A DBinary.cpp49 file_magic Type = identify_magic(Buffer.getBuffer()); in createBinary()
H A DSymbolicFile.cpp42 Type = identify_magic(Data); in createSymbolicFile()
H A DIRObjectFile.cpp91 file_magic Type = identify_magic(Object.getBuffer()); in findBitcodeInMemBuffer()
H A DObjectFile.cpp137 Type = identify_magic(Data); in createObjectFile()
H A DArchiveWriter.cpp376 const file_magic Type = identify_magic(Buf.getBuffer()); in getSymbols()
/freebsd-13.1/contrib/llvm-project/lld/MachO/
H A DDriverUtils.cpp216 file_magic magic = identify_magic(mbref.getBuffer()); in loadDylib()
288 switch (identify_magic(mb.getBuffer())) { in loadArchiveMember()
H A DDriver.cpp280 file_magic magic = identify_magic(mbref.getBuffer()); in addFile()
/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DNativeSession.cpp94 auto EC = identify_magic(PdbPath, Magic); in loadPdbFile()
149 auto EC = identify_magic(PdbPath.get(), Magic); in createFromExe()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ObjectFile/PDB/
H A DObjectFilePDB.cpp172 auto ec = llvm::identify_magic(PdbPath, magic); in loadPDBFile()
/freebsd-13.1/contrib/llvm-project/lld/lib/ReaderWriter/
H A DFileArchive.cpp34 using llvm::identify_magic;
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-ar/
H A Dllvm-ar.cpp675 identify_magic(NMOrErr->Buf->getBuffer()) == file_magic::archive) { in addChildMember()
715 identify_magic(NMOrErr->Buf->getBuffer()) == file_magic::archive) { in addMember()
897 if (identify_magic(MemBufferRef.getBuffer()) == file_magic::bitcode) { in getKindFromMember()
/freebsd-13.1/contrib/llvm-project/lld/ELF/
H A DInputFiles.h408 return identify_magic(mb.getBuffer()) == llvm::file_magic::bitcode; in isBitcode()
H A DDriver.cpp220 switch (identify_magic(mbref.getBuffer())) { in addFile()
244 if (identify_magic(p.first.getBuffer()) != file_magic::bitcode) { in addFile()
/freebsd-13.1/contrib/llvm-project/lld/COFF/
H A DInputFiles.h421 return identify_magic(mb.getBuffer()) == llvm::file_magic::bitcode; in isBitcode()
H A DDriver.cpp200 switch (identify_magic(mbref.getBuffer())) { in addBuffer()
281 file_magic magic = identify_magic(mb.getBuffer()); in addArchiveBuffer()
/freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DJITLink.cpp396 auto Magic = identify_magic(ObjectBuffer.getBuffer()); in createLinkGraphFromObject()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ObjectFile/wasm/
H A DObjectFileWasm.cpp41 if (llvm::identify_magic(toStringRef(data_sp->GetData())) != in ValidateModuleHeader()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A DInputFile.cpp261 if (auto EC = identify_magic(Path, Magic)) in open()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-link/
H A Dllvm-link.cpp375 identify_magic(Buffer->getBuffer()) == file_magic::archive in linkFiles()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-readobj/
H A Dllvm-readobj.cpp512 file_magic Type = identify_magic(Buffer->getBuffer()); in dumpInput()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/Process/minidump/
H A DProcessMinidump.cpp217 if (identify_magic(toStringRef(DataPtr->GetData())) != llvm::file_magic::minidump) in CreateInstance()

12