diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-09-14 11:07:59 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-09-14 11:07:59 -0400 |
commit | e46d3488de137cd5a01377513ff49e32595456af (patch) | |
tree | 9800a3cc751efc32a82627170fc2864d7f1ce355 /gdb/stabsread.c | |
parent | b4b73759537ae830d8b48834b419b095561d4d4a (diff) | |
download | binutils-gdb-e46d3488de137cd5a01377513ff49e32595456af.tar.gz |
gdb: remove TYPE_STUB
gdb/ChangeLog:
* gdbtypes.h (TYPE_STUB): Remove, replace all
uses with type::is_stub.
Change-Id: Iec25b50449a0d10a38f815209e478c343e98632c
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r-- | gdb/stabsread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c index ce4c6f1be31..33a23cb61ee 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -2336,7 +2336,7 @@ read_member_functions (struct stab_field_info *fip, const char **pp, == TYPE_CODE_METHOD); /* If this is just a stub, then we don't have the real name here. */ - if (TYPE_STUB (new_sublist->fn_field.type)) + if (new_sublist->fn_field.type->is_stub ()) { if (!TYPE_SELF_TYPE (new_sublist->fn_field.type)) set_type_self_type (new_sublist->fn_field.type, type); @@ -3429,7 +3429,7 @@ read_struct_type (const char **pp, struct type *type, enum type_code type_code, scribbling on existing structure type objects when new definitions appear. */ if (! (type->code () == TYPE_CODE_UNDEF - || TYPE_STUB (type))) + || type->is_stub ())) { complain_about_struct_wipeout (type); @@ -4453,7 +4453,7 @@ cleanup_undefined_types_1 (void) as well as in check_typedef to deal with the (legitimate in C though not C++) case of several types with the same name in different source files. */ - if (TYPE_STUB (*type)) + if ((*type)->is_stub ()) { struct pending *ppt; int i; |