X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FTableGen%2FMain.h;h=866b9868deb557a7a364d738a0fff7192993f8ce;hb=73fcc448d398e62f909f6c67240588179b3a2f43;hp=deaef4a9908a5d24536bee979712856ae439f079;hpb=7c788888872233748da10a8177a9a1eb176c1bc8;p=oota-llvm.git diff --git a/include/llvm/TableGen/Main.h b/include/llvm/TableGen/Main.h index deaef4a9908..866b9868deb 100644 --- a/include/llvm/TableGen/Main.h +++ b/include/llvm/TableGen/Main.h @@ -16,11 +16,13 @@ namespace llvm { -class TableGenAction; - -/// Run the table generator, performing the specified Action on parsed records. -int TableGenMain(char *argv0, TableGenAction &Action); +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); +int TableGenMain(char *argv0, TableGenMainFn *MainFn); } #endif