diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-09-26 16:34:28 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-10-29 16:44:21 -0400 |
commit | 2ad53ea10c14445d6074814bbdfe46bd787038cb (patch) | |
tree | 754f8b3ea284ae5ef76887619d2fb468b8067bd2 /gdb/compile | |
parent | d8557c3d229589c690a1bef92be434eb663e3bb6 (diff) | |
download | gdb-2ad53ea10c14445d6074814bbdfe46bd787038cb.zip gdb-2ad53ea10c14445d6074814bbdfe46bd787038cb.tar.gz gdb-2ad53ea10c14445d6074814bbdfe46bd787038cb.tar.bz2 |
gdb: remove TYPE_FIELD_LOC_KIND
Remove TYPE_FIELD_LOC_KIND, replace its uses with type::field +
field::loc_kind.
Change-Id: Ib124a26365df82ac1d23df7962d954192913bd90
Diffstat (limited to 'gdb/compile')
-rw-r--r-- | gdb/compile/compile-cplus-types.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/compile/compile-cplus-types.c b/gdb/compile/compile-cplus-types.c index 8871de1..ef73aaa 100644 --- a/gdb/compile/compile-cplus-types.c +++ b/gdb/compile/compile-cplus-types.c @@ -599,7 +599,7 @@ compile_cplus_convert_struct_or_union_members { CORE_ADDR physaddr; - switch (TYPE_FIELD_LOC_KIND (type, i)) + switch (type->field (i).loc_kind ()) { case FIELD_LOC_KIND_PHYSADDR: { @@ -939,7 +939,7 @@ compile_cplus_convert_enum (compile_cplus_instance *instance, struct type *type, gdb::unique_xmalloc_ptr<char> fname = compile_cplus_instance::decl_name (type->field (i).name ()); - if (TYPE_FIELD_LOC_KIND (type, i) != FIELD_LOC_KIND_ENUMVAL + if (type->field (i).loc_kind () != FIELD_LOC_KIND_ENUMVAL || fname == nullptr) continue; |