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/d-exp.y | |
parent | fa9f5be6830e9245ee1ad1eab9725cc039d45d07 (diff) | |
download | gdb-73923d7eedc7ab52144308ef7e9c12cbe4341bca.zip gdb-73923d7eedc7ab52144308ef7e9c12cbe4341bca.tar.gz gdb-73923d7eedc7ab52144308ef7e9c12cbe4341bca.tar.bz2 |
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/d-exp.y')
-rw-r--r-- | gdb/d-exp.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/d-exp.y b/gdb/d-exp.y index 73d5cfc..50c8325 100644 --- a/gdb/d-exp.y +++ b/gdb/d-exp.y @@ -1288,7 +1288,7 @@ lex_one_token (struct parser_state *par_state) return DOLLAR_VARIABLE; yylval.tsym.type - = language_lookup_primitive_type (parse_language (par_state), + = language_lookup_primitive_type (par_state->language (), par_state->gdbarch (), copy); if (yylval.tsym.type != NULL) return TYPENAME; |