diff options
author | Tom Tromey <tom@tromey.com> | 2019-03-24 09:01:18 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-04-04 19:55:10 -0600 |
commit | 73923d7eedc7ab52144308ef7e9c12cbe4341bca (patch) | |
tree | fcee1ced0863bbfbe10f7ac06a670188b21da165 /gdb/p-exp.y | |
parent | Turn parse_gdbarch into a method (diff) | |
download | binutils-gdb-73923d7eedc7ab52144308ef7e9c12cbe4341bca.tar.gz binutils-gdb-73923d7eedc7ab52144308ef7e9c12cbe4341bca.tar.bz2 binutils-gdb-73923d7eedc7ab52144308ef7e9c12cbe4341bca.zip |
Turn parse_language into a method
This changes parse_language into a method of parser_state. This patch
was written by a script.
gdb/ChangeLog
2019-04-04 Tom Tromey <tom@tromey.com>
* rust-exp.y: Replace "parse_language" with method call.
* p-exp.y:
(yylex): Replace "parse_language" with method call.
* m2-exp.y:
(yylex): Replace "parse_language" with method call.
* go-exp.y (classify_name): Replace "parse_language" with method
call.
* f-exp.y (yylex): Replace "parse_language" with method call.
* d-exp.y (lex_one_token): Replace "parse_language" with method
call.
* c-exp.y:
(lex_one_token, classify_name, yylex): Replace "parse_language"
with method call.
* ada-exp.y (find_primitive_type, type_char)
(type_system_address): Replace "parse_language" with method call.
Diffstat (limited to 'gdb/p-exp.y')
-rw-r--r-- | gdb/p-exp.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/p-exp.y b/gdb/p-exp.y index d4b315061b0..79b2979f6a7 100644 --- a/gdb/p-exp.y +++ b/gdb/p-exp.y @@ -591,7 +591,7 @@ exp : THIS write_exp_elt_opcode (pstate, OP_THIS); /* We need type of this. */ this_val - = value_of_this_silent (parse_language (pstate)); + = value_of_this_silent (pstate->language ()); if (this_val) this_type = value_type (this_val); else @@ -731,7 +731,7 @@ variable: name_not_typename write_exp_elt_opcode (pstate, STRUCTOP_PTR); /* We need type of this. */ this_val - = value_of_this_silent (parse_language (pstate)); + = value_of_this_silent (pstate->language ()); if (this_val) this_type = value_type (this_val); else @@ -1675,7 +1675,7 @@ yylex (void) return TYPENAME; } yylval.tsym.type - = language_lookup_primitive_type (parse_language (pstate), + = language_lookup_primitive_type (pstate->language (), pstate->gdbarch (), tmp); if (yylval.tsym.type != NULL) { |