mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 07:53:51 +08:00
gdb: remove TYPE_FIELD_NAME and FIELD_NAME macros
Remove the `TYPE_FIELD_NAME` and `FIELD_NAME` macros, changing all the call sites to use field::name directly. Change-Id: I6900ae4e1ffab1396e24fb3298e94bf123826ca6
This commit is contained in:
@ -582,7 +582,7 @@ compile_cplus_convert_struct_or_union_members
|
||||
{
|
||||
for (int i = TYPE_N_BASECLASSES (type); i < type->num_fields (); ++i)
|
||||
{
|
||||
const char *field_name = TYPE_FIELD_NAME (type, i);
|
||||
const char *field_name = type->field (i).name ();
|
||||
|
||||
if (TYPE_FIELD_IGNORE (type, i)
|
||||
|| TYPE_FIELD_ARTIFICIAL (type, i))
|
||||
@ -937,7 +937,7 @@ compile_cplus_convert_enum (compile_cplus_instance *instance, struct type *type,
|
||||
for (int i = 0; i < type->num_fields (); ++i)
|
||||
{
|
||||
gdb::unique_xmalloc_ptr<char> fname
|
||||
= compile_cplus_instance::decl_name (TYPE_FIELD_NAME (type, i));
|
||||
= compile_cplus_instance::decl_name (type->field (i).name ());
|
||||
|
||||
if (TYPE_FIELD_LOC_KIND (type, i) != FIELD_LOC_KIND_ENUMVAL
|
||||
|| fname == nullptr)
|
||||
|
Reference in New Issue
Block a user