diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-08-30 11:49:49 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-09-30 22:05:57 -0400 |
commit | 33d16dd987d16fe1eb289853e5a444192bb31d9e (patch) | |
tree | 06c5ec20fad9309ab4dace3b6c659fa518d272af /gdb/symtab.c | |
parent | d3fd12dfc52cf4cbb910830e3ff60dca111f7468 (diff) | |
download | fsf-binutils-gdb-33d16dd987d16fe1eb289853e5a444192bb31d9e.zip fsf-binutils-gdb-33d16dd987d16fe1eb289853e5a444192bb31d9e.tar.gz fsf-binutils-gdb-33d16dd987d16fe1eb289853e5a444192bb31d9e.tar.bz2 |
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
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index a30d900..62451fe 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -1973,7 +1973,7 @@ check_field (struct type *type, const char *name, for (i = type->num_fields () - 1; i >= TYPE_N_BASECLASSES (type); i--) { - const char *t_field_name = TYPE_FIELD_NAME (type, i); + const char *t_field_name = type->field (i).name (); if (t_field_name && (strcmp_iw (t_field_name, name) == 0)) { @@ -5609,9 +5609,9 @@ completion_list_add_fields (completion_tracker &tracker, if (c == TYPE_CODE_UNION || c == TYPE_CODE_STRUCT) for (j = TYPE_N_BASECLASSES (t); j < t->num_fields (); j++) - if (TYPE_FIELD_NAME (t, j)) + if (t->field (j).name ()) completion_list_add_name (tracker, sym->language (), - TYPE_FIELD_NAME (t, j), + t->field (j).name (), lookup_name, text, word); } } |