diff options
Diffstat (limited to 'include/llvm/TableGen/Main.h')
-rw-r--r-- | include/llvm/TableGen/Main.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/llvm/TableGen/Main.h b/include/llvm/TableGen/Main.h index deaef4a9908a..6b51e20146d7 100644 --- a/include/llvm/TableGen/Main.h +++ b/include/llvm/TableGen/Main.h @@ -16,10 +16,13 @@ namespace llvm { -class TableGenAction; +class RecordKeeper; +class raw_ostream; +/// \brief Perform the action using Records, and write output to OS. +/// \returns true on error, false otherwise +typedef bool TableGenMainFn(raw_ostream &OS, RecordKeeper &Records); -/// Run the table generator, performing the specified Action on parsed records. -int TableGenMain(char *argv0, TableGenAction &Action); +int TableGenMain(char *argv0, TableGenMainFn *MainFn); } |