From: Simon Marchi Date: Fri, 2 Apr 2021 01:10:09 +0000 (-0400) Subject: gdb: remove TYPE_FLAG_ENUM X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0672875f3c7c03580ed88dfa48c2e3a3b16d0697;p=binutils-gdb.git gdb: remove TYPE_FLAG_ENUM gdb/ChangeLog: * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses with type::is_flag_enum. Change-Id: I74e23893066eecd6df641045b859a6d6ebb13dd0 --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1bd2f138ada..1bdd652b632 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2021-04-01 Simon Marchi + + * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses + with type::is_flag_enum. + 2021-04-01 Simon Marchi * gdbtypes.h (struct type) instance_flags ()) & TYPE_INSTANCE_FLAG_NOTTEXT) -#define TYPE_FLAG_ENUM(t) ((t)->is_flag_enum ()) - /* * Constant type. If this is set, the corresponding type has a const modifier. */ diff --git a/gdb/valprint.c b/gdb/valprint.c index baf50f76b60..654552aa42e 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -616,7 +616,7 @@ generic_val_print_enum_1 (struct type *type, LONGEST val, fputs_styled (TYPE_FIELD_NAME (type, i), variable_name_style.style (), stream); } - else if (TYPE_FLAG_ENUM (type)) + else if (type->is_flag_enum ()) { int first = 1;