diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-09-14 22:22:33 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2020-09-14 22:22:33 -0400 |
commit | 10242f367fe102a4d55574c930ebfb389dbd233d (patch) | |
tree | a1d1f91f5739cf0614533b97dea590f0d5faba0f /gdb/stabsread.c | |
parent | 4a8f181d196f85ca153fe51ca6bb40942e0e1ed7 (diff) | |
download | gdb-10242f367fe102a4d55574c930ebfb389dbd233d.zip gdb-10242f367fe102a4d55574c930ebfb389dbd233d.tar.gz gdb-10242f367fe102a4d55574c930ebfb389dbd233d.tar.bz2 |
gdb: remove TYPE_INSTANCE_FLAGS
Remove it, use the `type::instance_flags` method everywhere.
gdb/ChangeLog:
* gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
with `type::instance_flags`.
Change-Id: I3653108b712e6186529cb0102e2b70247bbcabbe
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r-- | gdb/stabsread.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 02fc8cc..4b1e3b2 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -4473,12 +4473,11 @@ cleanup_undefined_types_1 (void) if (SYMBOL_CLASS (sym) == LOC_TYPEDEF && SYMBOL_DOMAIN (sym) == STRUCT_DOMAIN - && (SYMBOL_TYPE (sym)->code () == - (*type)->code ()) - && (TYPE_INSTANCE_FLAGS (*type) == - TYPE_INSTANCE_FLAGS (SYMBOL_TYPE (sym))) + && (SYMBOL_TYPE (sym)->code () == (*type)->code ()) + && ((*type)->instance_flags () + == SYMBOL_TYPE (sym)->instance_flags ()) && strcmp (sym->linkage_name (), type_name) == 0) - replace_type (*type, SYMBOL_TYPE (sym)); + replace_type (*type, SYMBOL_TYPE (sym)); } } } |