diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-05-16 12:16:06 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-05-16 12:36:05 -0400 |
commit | 7d93a1e0b6af703c75daa93456608f8bb5f34f13 (patch) | |
tree | 463f7922a76e4a9341095339498726b65be181db /gdb/ada-typeprint.c | |
parent | d0e39ea27cde07011967ab74d39cf13dfe3370c4 (diff) |
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.
Diffstat (limited to 'gdb/ada-typeprint.c')
-rw-r--r-- | gdb/ada-typeprint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/ada-typeprint.c b/gdb/ada-typeprint.c index 1b976b1fbd..076c0a63bf 100644 --- a/gdb/ada-typeprint.c +++ b/gdb/ada-typeprint.c @@ -180,8 +180,8 @@ print_range (struct type *type, struct ui_file *stream, break; default: fprintf_filtered (stream, "%.*s", - ada_name_prefix_len (TYPE_NAME (type)), - TYPE_NAME (type)); + ada_name_prefix_len (type->name ()), + type->name ()); break; } } @@ -267,7 +267,7 @@ print_range_type (struct type *raw_type, struct ui_file *stream, const char *subtype_info; gdb_assert (raw_type != NULL); - name = TYPE_NAME (raw_type); + name = raw_type->name (); gdb_assert (name != NULL); if (raw_type->code () == TYPE_CODE_RANGE) |