reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/BinaryFormat/Magic.h
   66 file_magic identify_magic(StringRef magic);

References

lib/BinaryFormat/Magic.cpp
  230   Result = identify_magic(FileBuffer->getBuffer());
lib/ExecutionEngine/JITLink/JITLink.cpp
  218   auto Magic = identify_magic(Ctx->getObjectBuffer().getBuffer());
lib/Object/ArchiveWriter.cpp
  357   if (identify_magic(Buf.getBuffer()) == file_magic::bitcode) {
lib/Object/Binary.cpp
   48   file_magic Type = identify_magic(Buffer.getBuffer());
lib/Object/IRObjectFile.cpp
   91   file_magic Type = identify_magic(Object.getBuffer());
lib/Object/ObjectFile.cpp
  121     Type = identify_magic(Data);
lib/Object/SymbolicFile.cpp
   42     Type = identify_magic(Data);
lib/ToolDrivers/llvm-lib/LibDriver.cpp
  122     if (identify_magic(MaybeBuf.get()->getBuffer()) == file_magic::archive) {
  194   file_magic Magic = identify_magic(MB.getBuffer());
tools/lld/COFF/Driver.cpp
  178   switch (identify_magic(mbref.getBuffer())) {
  255   file_magic magic = identify_magic(mb.getBuffer());
tools/lld/COFF/InputFiles.h
  357   return identify_magic(mb.getBuffer()) == llvm::file_magic::bitcode;
tools/lld/ELF/Driver.cpp
  202   switch (identify_magic(mbref.getBuffer())) {
  226         if (identify_magic(p.first.getBuffer()) != file_magic::bitcode) {
tools/lld/ELF/InputFiles.cpp
  346       (identify_magic(mb.getBuffer()) == file_magic::elf_shared_object);
tools/lld/ELF/InputFiles.h
  381   return identify_magic(mb.getBuffer()) == llvm::file_magic::bitcode;
tools/lld/lib/Core/Reader.cpp
   39   file_magic fileType = identify_magic(content);
tools/lld/wasm/Driver.cpp
  224   switch (identify_magic(mbref.getBuffer())) {
tools/lld/wasm/InputFiles.cpp
   64   file_magic magic = identify_magic(mb.getBuffer());
tools/lldb/source/Plugins/Process/minidump/ProcessMinidump.cpp
  148   if (identify_magic(toStringRef(DataPtr->GetData())) != llvm::file_magic::minidump)
tools/llvm-ar/llvm-ar.cpp
  657       identify_magic(NMOrErr->Buf->getBuffer()) == file_magic::archive) {
  697       identify_magic(NMOrErr->Buf->getBuffer()) == file_magic::archive) {
unittests/BinaryFormat/TestFileMagic.cpp
  136     EXPECT_EQ(i->magic, identify_magic(magic));