diff options
author | Sean Silva <silvas@purdue.edu> | 2012-10-03 21:29:18 +0000 |
---|---|---|
committer | Sean Silva <silvas@purdue.edu> | 2012-10-03 21:29:18 +0000 |
commit | f42a6741de5eda904a7c7b02731f0b019bbe0c5c (patch) | |
tree | 802e9874f47a1c64769f490a68a7ffaacac47b07 /include | |
parent | ec7559db6d4d7e8f3cbeea8b7f2174318b3e8918 (diff) | |
download | llvm-f42a6741de5eda904a7c7b02731f0b019bbe0c5c.tar.gz llvm-f42a6741de5eda904a7c7b02731f0b019bbe0c5c.tar.bz2 llvm-f42a6741de5eda904a7c7b02731f0b019bbe0c5c.tar.xz |
tblgen: Put new TableGenMain API in place.
In order to avoid rev-lock with Clang when moving to the new API, also
preserve the current API temporarily and insert a shim to implement the
new API in terms of the old.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165165 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/TableGen/Main.h | 8 |
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 |