mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 07:13:02 +00:00
* lib/timevar.c (get_time): Include children time.
* src/lalr.h (LA, LArule): Don't export them: used with the state_t. * src/lalr.c (LA, LArule): Static. * src/lalr.h, src/lalr.c (lalr_free): New. * src/main.c (main): Call it. * src/tables.c (pack_vector): Check whether loc is >= to the table_size, not >. (pack_tables): Don't free froms, tos, conflict_tos, and pos... (tables_generate): do it, since that's also it which allocates them. Don't free LA and LArule, main does.
This commit is contained in:
@@ -137,6 +137,11 @@ main (int argc, char *argv[])
|
||||
tables_generate ();
|
||||
timevar_pop (TV_ACTIONS);
|
||||
|
||||
/* Lookaheads are no longer needed. */
|
||||
timevar_push (TV_FREE);
|
||||
lalr_free ();
|
||||
timevar_pop (TV_FREE);
|
||||
|
||||
/* Output the tables and the parser to ftable. In file output. */
|
||||
timevar_push (TV_PARSER);
|
||||
output ();
|
||||
|
||||
Reference in New Issue
Block a user