LLVM 20.0.0git
Classes | Namespaces | Functions
Magic.h File Reference
#include <system_error>

Go to the source code of this file.

Classes

struct  llvm::file_magic
 file_magic - An "enum class" enumeration of file types based on magic (the first N bytes of the file). More...
 

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Functions

file_magic llvm::identify_magic (StringRef magic)
 Identify the type of a binary file based on how magical it is.
 
std::error_code llvm::identify_magic (const Twine &path, file_magic &result)
 Get and identify path's type based on its content.