Proper name 16 bit libcalls
[llvm/msp430.git] / utils / TableGen / ClangDiagnosticsEmitter.h
blob58ea524d96477d854471a2f31b94fa16ea19e72e
1 //===- ClangDiagnosticsEmitter.h - Generate Clang diagnostics tables -*- C++ -*-
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // These tablegen backends emit Clang diagnostics tables.
12 //===----------------------------------------------------------------------===//
14 #ifndef CLANGDIAGS_EMITTER_H
15 #define CLANGDIAGS_EMITTER_H
17 #include "TableGenBackend.h"
19 namespace llvm {
21 /// ClangDiagsDefsEmitter - The top-level class emits .def files containing
22 /// declarations of Clang diagnostics.
23 ///
24 class ClangDiagsDefsEmitter : public TableGenBackend {
25 RecordKeeper &Records;
26 const std::string& Component;
27 public:
28 explicit ClangDiagsDefsEmitter(RecordKeeper &R, const std::string& component)
29 : Records(R), Component(component) {}
31 // run - Output the .def file contents
32 void run(std::ostream &OS);
35 class ClangDiagGroupsEmitter : public TableGenBackend {
36 RecordKeeper &Records;
37 public:
38 explicit ClangDiagGroupsEmitter(RecordKeeper &R) : Records(R) {}
40 void run(std::ostream &OS);
44 } // End llvm namespace
46 #endif