mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-02 04:27:46 +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:
@ -325,10 +325,10 @@ vb_match (struct type *type, int index, struct type *basetype)
|
||||
if (TYPE_TARGET_TYPE (fieldtype) == basetype)
|
||||
return 1;
|
||||
|
||||
if (TYPE_NAME (basetype) != NULL
|
||||
&& TYPE_NAME (TYPE_TARGET_TYPE (fieldtype)) != NULL
|
||||
&& strcmp (TYPE_NAME (basetype),
|
||||
TYPE_NAME (TYPE_TARGET_TYPE (fieldtype))) == 0)
|
||||
if (basetype->name () != NULL
|
||||
&& TYPE_TARGET_TYPE (fieldtype)->name () != NULL
|
||||
&& strcmp (basetype->name (),
|
||||
TYPE_TARGET_TYPE (fieldtype)->name ()) == 0)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user