From 4753d33b404f07e749f648c57ae61e3984d40029 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Thu, 6 Nov 2014 17:19:06 -0800 Subject: Delete TYPE_CODE_CLASS, it's just an alias of TYPE_CODE_STRUCT. gdb/ChangeLog: * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use TYPE_CODE_STRUCT. --- gdb/p-exp.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/p-exp.y') diff --git a/gdb/p-exp.y b/gdb/p-exp.y index 0aa6f20..f128fcb 100644 --- a/gdb/p-exp.y +++ b/gdb/p-exp.y @@ -410,8 +410,8 @@ exp : type '(' exp ')' %prec UNARY { /* Allow automatic dereference of classes. */ if ((TYPE_CODE (current_type) == TYPE_CODE_PTR) - && (TYPE_CODE (TYPE_TARGET_TYPE (current_type)) == TYPE_CODE_CLASS) - && (TYPE_CODE ($1) == TYPE_CODE_CLASS)) + && (TYPE_CODE (TYPE_TARGET_TYPE (current_type)) == TYPE_CODE_STRUCT) + && (TYPE_CODE ($1) == TYPE_CODE_STRUCT)) write_exp_elt_opcode (pstate, UNOP_IND); } write_exp_elt_opcode (pstate, UNOP_CAST); -- cgit v1.1