mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
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
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user