Sean Hunt | 44ed2c3 | 2010-05-06 05:24:38 +0000 | [diff] [blame] | 1 | //===- ClangASTNodesEmitter.h - Generate Clang AST node tables -*- C++ -*--===// |
Sean Hunt | 84e2f95 | 2010-05-05 04:13:08 +0000 | [diff] [blame] | 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 | // |
Sean Hunt | 44ed2c3 | 2010-05-06 05:24:38 +0000 | [diff] [blame] | 10 | // These tablegen backends emit Clang AST node tables |
Sean Hunt | 84e2f95 | 2010-05-05 04:13:08 +0000 | [diff] [blame] | 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef CLANGAST_EMITTER_H |
| 15 | #define CLANGAST_EMITTER_H |
| 16 | |
| 17 | #include "TableGenBackend.h" |
| 18 | |
| 19 | namespace llvm { |
| 20 | |
| 21 | /// ClangStmtNodesEmitter - The top-level class emits .def files containing |
| 22 | /// declarations of Clang statements. |
| 23 | /// |
| 24 | class ClangStmtNodesEmitter : public TableGenBackend { |
| 25 | RecordKeeper &Records; |
| 26 | public: |
| 27 | explicit ClangStmtNodesEmitter(RecordKeeper &R) |
| 28 | : Records(R) {} |
| 29 | |
| 30 | // run - Output the .def file contents |
| 31 | void run(raw_ostream &OS); |
| 32 | }; |
| 33 | |
| 34 | } // End llvm namespace |
| 35 | |
| 36 | #endif |