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:
Simon Marchi 2021-04-01 21:10:09 -04:00 committed by Simon Marchi
parent 9902b32793
commit 0672875f3c
3 changed files with 6 additions and 3 deletions

View File

@ -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,

View File

@ -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. */

View File

@ -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;