summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Remarks/RemarkParserImpl.h
blob: 5f8c21dcdd44c71f23a67234633dec62f03b0df3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//===-- 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

#include "llvm/Remarks/RemarkParser.h"

namespace llvm {
namespace remarks {
/// This is used as a base for any parser implementation.
struct ParserImpl {
  explicit ParserImpl(Format ParserFormat) : ParserFormat(ParserFormat) {}
  // Virtual destructor prevents mismatched deletes
  virtual ~ParserImpl() {}

  // The parser format. This is used as a tag to safely cast between
  // implementations.
  Format ParserFormat;
};
} // end namespace remarks
} // end namespace llvm

#endif /* LLVM_REMARKS_REMARK_PARSER_IMPL_H */
OpenPOWER on IntegriCloud