diff options
| author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-07-04 00:31:03 +0000 |
|---|---|---|
| committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-07-04 00:31:03 +0000 |
| commit | 312f1d7d7c572c4077659d30e66278fd9761940e (patch) | |
| tree | caa0b64f2d57d0e51d981073d565b7bda25ef38b /llvm/lib/Remarks/RemarkParserImpl.h | |
| parent | e6ba313a86a1e2b905c432e1f04f13eed89e046c (diff) | |
| download | bcm5719-llvm-312f1d7d7c572c4077659d30e66278fd9761940e.tar.gz bcm5719-llvm-312f1d7d7c572c4077659d30e66278fd9761940e.zip | |
[Remarks] Require an explicit format to the parser
Make the parser require an explicit format.
This allows new formats to be easily added by following YAML as an
example.
llvm-svn: 365102
Diffstat (limited to 'llvm/lib/Remarks/RemarkParserImpl.h')
| -rw-r--r-- | llvm/lib/Remarks/RemarkParserImpl.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Remarks/RemarkParserImpl.h b/llvm/lib/Remarks/RemarkParserImpl.h index b4c106badf6..6b9329b1815 100644 --- a/llvm/lib/Remarks/RemarkParserImpl.h +++ b/llvm/lib/Remarks/RemarkParserImpl.h @@ -13,19 +13,19 @@ #ifndef LLVM_REMARKS_REMARK_PARSER_IMPL_H #define LLVM_REMARKS_REMARK_PARSER_IMPL_H +#include "llvm/Remarks/RemarkParser.h" + namespace llvm { namespace remarks { /// This is used as a base for any parser implementation. struct ParserImpl { - enum class Kind { YAML }; - - explicit ParserImpl(Kind TheParserKind) : ParserKind(TheParserKind) {} + explicit ParserImpl(ParserFormat Format) : Format(Format) {} // Virtual destructor prevents mismatched deletes virtual ~ParserImpl() {} - // The parser kind. This is used as a tag to safely cast between + // The parser format. This is used as a tag to safely cast between // implementations. - Kind ParserKind; + ParserFormat Format; }; } // end namespace remarks } // end namespace llvm |

