mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-16 07:43:03 +00:00
We spend a lot of time in quotearg, in particular when --verbose.
* src/symtab.c (symbol_get): Store a quoted version of the key. (symbol_tag_get, symbol_tag_get_n, symbol_tag_print): Remove. Adjust all callers.
This commit is contained in:
@@ -557,7 +557,7 @@ handle_action_dollar (char *text, location_t location)
|
||||
type_name = symbol_list_n_type_name_get (current_rule, location, 0);
|
||||
if (!type_name && typed)
|
||||
complain_at (location, _("$$ of `%s' has no declared type"),
|
||||
symbol_tag_get (current_rule->sym));
|
||||
current_rule->sym->tag);
|
||||
if (!type_name)
|
||||
type_name = "";
|
||||
obstack_fgrow1 (&string_obstack,
|
||||
@@ -581,7 +581,7 @@ handle_action_dollar (char *text, location_t location)
|
||||
n);
|
||||
if (!type_name && typed)
|
||||
complain_at (location, _("$%d of `%s' has no declared type"),
|
||||
n, symbol_tag_get (current_rule->sym));
|
||||
n, current_rule->sym->tag);
|
||||
if (!type_name)
|
||||
type_name = "";
|
||||
obstack_fgrow3 (&string_obstack,
|
||||
|
||||
Reference in New Issue
Block a user