llvm::remarks::magicToFormat

Parse and validate a magic number to a remark format.

Synopsis

Declared in <llvm/Remarks/RemarkFormat.h>

Expected<Format>
magicToFormat(StringRef Magic);

Return Value

The Format matching Magic, or an error if it is unrecognized.

Parameters

NameDescription
MagicLeading bytes of a remarks buffer used for format detection.