summaryrefslogtreecommitdiff
path: root/include/llvm/TableGen/Main.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/TableGen/Main.h')
-rw-r--r--include/llvm/TableGen/Main.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/TableGen/Main.h b/include/llvm/TableGen/Main.h
index deaef4a990..663779f176 100644
--- a/include/llvm/TableGen/Main.h
+++ b/include/llvm/TableGen/Main.h
@@ -21,6 +21,14 @@ class TableGenAction;
/// Run the table generator, performing the specified Action on parsed records.
int TableGenMain(char *argv0, TableGenAction &Action);
+class RecordKeeper;
+class raw_ostream;
+typedef bool TableGenMainFn(raw_ostream &OS, RecordKeeper &Records);
+
+/// Perform the action using Records, and write output to OS.
+/// \returns true on error, false otherwise
+int TableGenMain(char *argv0, TableGenMainFn *MainFn);
+
}
#endif