diff options
Diffstat (limited to 'gdb/d-exp.y')
-rw-r--r-- | gdb/d-exp.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/d-exp.y b/gdb/d-exp.y index ef858ecbd4b..601659d080d 100644 --- a/gdb/d-exp.y +++ b/gdb/d-exp.y @@ -448,7 +448,7 @@ PrimaryExpression: sym = lookup_symbol (copy.c_str (), pstate->expression_context_block, VAR_DOMAIN, &is_a_field_of_this); - if (sym.symbol && SYMBOL_CLASS (sym.symbol) != LOC_TYPEDEF) + if (sym.symbol && sym.symbol->aclass () != LOC_TYPEDEF) { if (symbol_read_needs_frame (sym.symbol)) pstate->block_tracker->update (sym); @@ -1341,7 +1341,7 @@ classify_name (struct parser_state *par_state, const struct block *block) std::string copy = copy_name (yylval.sval); sym = lookup_symbol (copy.c_str (), block, VAR_DOMAIN, &is_a_field_of_this); - if (sym.symbol && SYMBOL_CLASS (sym.symbol) == LOC_TYPEDEF) + if (sym.symbol && sym.symbol->aclass () == LOC_TYPEDEF) { yylval.tsym.type = SYMBOL_TYPE (sym.symbol); return TYPENAME; @@ -1388,7 +1388,7 @@ classify_inner_name (struct parser_state *par_state, if (yylval.ssym.sym.symbol == NULL) return ERROR; - if (SYMBOL_CLASS (yylval.ssym.sym.symbol) == LOC_TYPEDEF) + if (yylval.ssym.sym.symbol->aclass () == LOC_TYPEDEF) { yylval.tsym.type = SYMBOL_TYPE (yylval.ssym.sym.symbol); return TYPENAME; |