mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-26 19:44:11 +08:00
gdb: remove TYPE_FLAG_ENUM
gdb/ChangeLog: * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses with type::is_flag_enum. Change-Id: I74e23893066eecd6df641045b859a6d6ebb13dd0
This commit is contained in:
parent
9902b32793
commit
0672875f3c
@ -1,3 +1,8 @@
|
||||
2021-04-01 Simon Marchi <simon.marchi@efficios.com>
|
||||
|
||||
* gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
|
||||
with type::is_flag_enum.
|
||||
|
||||
2021-04-01 Simon Marchi <simon.marchi@efficios.com>
|
||||
|
||||
* gdbtypes.h (struct type) <is_flag_enum,
|
||||
|
@ -220,8 +220,6 @@ DEF_ENUM_FLAGS_TYPE (enum type_instance_flag_value, type_instance_flags);
|
||||
|
||||
#define TYPE_NOTTEXT(t) (((t)->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. */
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user