diff options
Diffstat (limited to 'llvm/include/llvm/Remarks/RemarkFormat.h')
| -rw-r--r-- | llvm/include/llvm/Remarks/RemarkFormat.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/Remarks/RemarkFormat.h b/llvm/include/llvm/Remarks/RemarkFormat.h index 6dd32b22609..a432c5adf59 100644 --- a/llvm/include/llvm/Remarks/RemarkFormat.h +++ b/llvm/include/llvm/Remarks/RemarkFormat.h @@ -27,6 +27,9 @@ enum class Format { Unknown, YAML, YAMLStrTab, Bitstream }; /// Parse and validate a string for the remark format. Expected<Format> parseFormat(StringRef FormatStr); +/// Parse and validate a magic number to a remark format. +Expected<Format> magicToFormat(StringRef Magic); + } // end namespace remarks } // end namespace llvm |

