Home
last modified time | relevance | path

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

12

/src/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DMagic.h75 file_magic identify_magic(StringRef magic);
83 std::error_code identify_magic(const Twine &path, file_magic &result);
/src/contrib/llvm-project/llvm/lib/BinaryFormat/
H A DMagic.cpp33 file_magic llvm::identify_magic(StringRef Magic) { in identify_magic() function in llvm
281 std::error_code llvm::identify_magic(const Twine &Path, file_magic &Result) { in identify_magic() function in llvm
288 Result = identify_magic(FileBuffer->getBuffer()); in identify_magic()
/src/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DCOFF.cpp49 auto Magic = identify_magic(ObjectBuffer.getBuffer()); in createLinkGraphFromCOFFObject()
H A DJITLink.cpp459 auto Magic = identify_magic(ObjectBuffer.getBuffer()); in createLinkGraphFromObject()
/src/contrib/llvm-project/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.cpp179 if (identify_magic(Buf.getBuffer()) != file_magic::offload_binary) in create()
274 file_magic Type = identify_magic(Buffer.getBuffer()); in extractOffloadBinaries()
H A DIRObjectFile.cpp90 file_magic Type = identify_magic(Object.getBuffer()); in findBitcodeInMemBuffer()
H A DObjectFile.cpp153 Type = identify_magic(Data); in createObjectFile()
H A DArchiveWriter.cpp82 if (identify_magic(MemBufferRef.getBuffer()) == file_magic::bitcode) { in detectKindFromObject()
487 const file_magic Type = identify_magic(Buf.getBuffer()); in getSymbolicFile()
/src/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DNativeSession.cpp103 auto EC = identify_magic(PdbPath, Magic); in loadPdbFile()
158 auto EC = identify_magic(PdbPath.get(), Magic); in createFromExe()
H A DInputFile.cpp308 if (auto EC = identify_magic(Path, Magic)) in open()
/src/contrib/llvm-project/llvm/lib/ToolDrivers/llvm-lib/
H A DLibDriver.cpp137 if (identify_magic(MaybeBuf.get()->getBuffer()) == file_magic::archive) { in doList()
222 file_magic Magic = identify_magic(MB.getBuffer()); in appendFile()
/src/contrib/llvm-project/lldb/source/Plugins/ObjectFile/PDB/
H A DObjectFilePDB.cpp170 auto ec = llvm::identify_magic(PdbPath, magic); in loadPDBFile()
/src/contrib/llvm-project/lldb/source/Plugins/ObjectFile/COFF/
H A DObjectFileCOFF.cpp26 return identify_magic(toStringRef(data->GetData())) == in IsCOFFObjectFile()
/src/contrib/llvm-project/lld/COFF/
H A DInputFiles.h413 return identify_magic(mb.getBuffer()) == llvm::file_magic::bitcode; in isBitcode()
/src/contrib/llvm-project/lld/MachO/
H A DDriverUtils.cpp235 file_magic magic = identify_magic(mbref.getBuffer()); in loadDylib()
/src/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/
H A DLVReaderHandler.cpp141 file_magic FileMagic = identify_magic(Buffer.getBuffer()); in handleBuffer()
/src/contrib/llvm-project/lldb/source/Plugins/ObjectFile/wasm/
H A DObjectFileWasm.cpp43 if (llvm::identify_magic(toStringRef(data_sp->GetData())) != in ValidateModuleHeader()
/src/contrib/llvm-project/clang/lib/Driver/
H A DOffloadBundler.cpp347 if (llvm::identify_magic(FC) != llvm::file_magic::offload_bundle) in ReadHeader()
536 if (llvm::identify_magic(*NameOrErr) != llvm::file_magic::offload_bundle) in IsOffloadSection()
1077 if (llvm::identify_magic(Blob) != in decompress()
/src/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Readers/
H A DLVCodeViewReader.cpp396 assert(identify_magic((*MemBuffer).getBuffer()) == file_magic::pdb && in loadTypeServer()
918 assert(identify_magic(BinaryBuffer->getBuffer()) == in createScopes()
/src/contrib/llvm-project/llvm/tools/llvm-link/
H A Dllvm-link.cpp417 identify_magic(Buffer->getBuffer()) == file_magic::archive in linkFiles()
/src/contrib/llvm-project/llvm/tools/llvm-ar/
H A Dllvm-ar.cpp768 identify_magic(NMOrErr->Buf->getBuffer()) == file_magic::archive) { in addChildMember()
822 identify_magic(NM.Buf->getBuffer()) == file_magic::archive) { in addMember()
/src/contrib/llvm-project/llvm/lib/Debuginfod/
H A DDebuginfod.cpp398 std::error_code EC = identify_magic(FilePath, Type); in hasELFMagic()
/src/contrib/llvm-project/lldb/source/Plugins/Process/minidump/
H A DProcessMinidump.cpp138 if (identify_magic(toStringRef(DataPtr->GetData())) != llvm::file_magic::minidump) in CreateInstance()

12