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:
parent
d0e39ea27c
commit
7d93a1e0b6
46 changed files with 334 additions and 331 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue