10 #ifndef LLVM_BINARYFORMAT_MAGIC_H
11 #define LLVM_BINARYFORMAT_MAGIC_H
16 #include <system_error>
55 operator Impl()
const {
return V; }
70 std::error_code
identify_magic(
const Twine &path, file_magic &result);
Microsoft cl.exe's intermediate code file.
ELF dynamically linked shared lib.
Windows compiled resource file (.res)
Mach-O Preloaded Executable.
file_magic identify_magic(StringRef magic)
Identify the type of a binary file based on how magical it is.
The Mach-O dynamic linker.
ELF Relocatable object file.
Mach-O dSYM companion file.
Mach-O dynlinked shared lib.
file_magic - An "enum class" enumeration of file types based on magic (the first N bytes of the file)...