Don't generate primary states array if it will be unused due to abi version setting
This commit is contained in:
parent
621eb04cb1
commit
4b93326898
2 changed files with 5 additions and 2 deletions
|
|
@ -113,7 +113,10 @@ impl Generator {
|
|||
}
|
||||
|
||||
self.add_non_terminal_alias_map();
|
||||
self.add_primary_state_id_list();
|
||||
|
||||
if self.abi_version >= ABI_VERSION_WITH_PRIMARY_STATES {
|
||||
self.add_primary_state_id_list();
|
||||
}
|
||||
|
||||
let mut main_lex_table = LexTable::default();
|
||||
swap(&mut main_lex_table, &mut self.main_lex_table);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue