diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-04-01 21:10:09 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-04-01 21:10:09 -0400 |
commit | 3bc440a2c4fcbb3b46b2b07155b1fa401d8ceb22 (patch) | |
tree | 4a6caa0ccfb1d97b9d76aaed41b431f7fe616943 /gdb/compile | |
parent | aa70e35c71a2bfa8c2733878b665edb39c171d34 (diff) | |
download | gdb-3bc440a2c4fcbb3b46b2b07155b1fa401d8ceb22.zip gdb-3bc440a2c4fcbb3b46b2b07155b1fa401d8ceb22.tar.gz gdb-3bc440a2c4fcbb3b46b2b07155b1fa401d8ceb22.tar.bz2 |
gdb: remove TYPE_DECLARED_CLASS
gdb/ChangeLog:
* gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
with type::is_declared_class.
Change-Id: Ifecb2342417ecd7bf570c3205344b09d706daab2
Diffstat (limited to 'gdb/compile')
-rw-r--r-- | gdb/compile/compile-cplus-types.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/compile/compile-cplus-types.c b/gdb/compile/compile-cplus-types.c index ef5fbcf..71ad679 100644 --- a/gdb/compile/compile-cplus-types.c +++ b/gdb/compile/compile-cplus-types.c @@ -91,7 +91,7 @@ get_method_access_flag (const struct type *type, int fni, int num) gdb_assert (type->code () == TYPE_CODE_STRUCT); /* If this type was not declared a class, everything is public. */ - if (!TYPE_DECLARED_CLASS (type)) + if (!type->is_declared_class ()) return GCC_CP_ACCESS_PUBLIC; /* Otherwise, read accessibility from the fn_field. */ @@ -828,11 +828,11 @@ compile_cplus_convert_struct_or_union (compile_cplus_instance *instance, gcc_decl resuld; if (type->code () == TYPE_CODE_STRUCT) { - const char *what = TYPE_DECLARED_CLASS (type) ? "class" : "struct"; + const char *what = type->is_declared_class () ? "class" : "struct"; resuld = instance->plugin ().build_decl (what, name.get (), (GCC_CP_SYMBOL_CLASS | nested_access - | (TYPE_DECLARED_CLASS (type) + | (type->is_declared_class () ? GCC_CP_FLAG_CLASS_NOFLAG : GCC_CP_FLAG_CLASS_IS_STRUCT)), 0, nullptr, 0, filename, line); |