mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
gdb: remove TYPE_NAME macro
Remove `TYPE_NAME`, changing all the call sites to use `type::name` directly. This is quite a big diff, but this was mostly done using sed and coccinelle. A few call sites were done by hand. gdb/ChangeLog: * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use type::name instead.
This commit is contained in:
@ -87,7 +87,7 @@ print_subexp_standard (struct expression *exp, int *pos,
|
||||
case OP_SCOPE:
|
||||
myprec = PREC_PREFIX;
|
||||
assoc = 0;
|
||||
fputs_filtered (TYPE_NAME (exp->elts[pc + 1].type), stream);
|
||||
fputs_filtered (exp->elts[pc + 1].type->name (), stream);
|
||||
fputs_filtered ("::", stream);
|
||||
nargs = longest_to_int (exp->elts[pc + 2].longconst);
|
||||
(*pos) += 4 + BYTES_TO_EXP_ELEM (nargs + 1);
|
||||
|
Reference in New Issue
Block a user