summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Remarks/RemarkParserImpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Remarks/RemarkParserImpl.h')
-rw-r--r--llvm/lib/Remarks/RemarkParserImpl.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/llvm/lib/Remarks/RemarkParserImpl.h b/llvm/lib/Remarks/RemarkParserImpl.h
new file mode 100644
index 00000000000..f812f495a17
--- /dev/null
+++ b/llvm/lib/Remarks/RemarkParserImpl.h
@@ -0,0 +1,29 @@
+//===-- RemarkParserImpl.h - Implementation details -------------*- C++/-*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This file provides implementation details for the remark parser.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_REMARKS_REMARK_PARSER_IMPL_H
+#define LLVM_REMARKS_REMARK_PARSER_IMPL_H
+
+namespace llvm {
+namespace remarks {
+/// This is used as a base for any parser implementation.
+struct ParserImpl {
+ enum class Kind { YAML };
+
+ // The parser kind. This is used as a tag to safely cast between
+ // implementations.
+ enum Kind Kind;
+};
+} // end namespace remarks
+} // end namespace llvm
+
+#endif /* LLVM_REMARKS_REMARK_PARSER_IMPL_H */
OpenPOWER on IntegriCloud