aboutsummaryrefslogtreecommitdiff
path: root/gdb/cp-support.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2022-07-30 22:43:54 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2022-09-21 10:59:49 -0400
commit27710edb4e588d0360620df424dd7ee7e8cfafee (patch)
treeaf4da9f4c7e032ab6653536f2a991cbe09cee759 /gdb/cp-support.c
parent8a50fdcefc44c40d5c4b978f19c22ddfbeb29139 (diff)
downloadfsf-binutils-gdb-27710edb4e588d0360620df424dd7ee7e8cfafee.zip
fsf-binutils-gdb-27710edb4e588d0360620df424dd7ee7e8cfafee.tar.gz
fsf-binutils-gdb-27710edb4e588d0360620df424dd7ee7e8cfafee.tar.bz2
gdb: remove TYPE_TARGET_TYPE
Remove the macro, replace all uses by calls to type::target_type. Change-Id: Ie51d3e1e22f94130176d6abd723255282bb6d1ed
Diffstat (limited to 'gdb/cp-support.c')
-rw-r--r--gdb/cp-support.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/cp-support.c b/gdb/cp-support.c
index 807c944..1891bac 100644
--- a/gdb/cp-support.c
+++ b/gdb/cp-support.c
@@ -212,10 +212,10 @@ inspect_type (struct demangle_parse_info *info,
struct type *last = otype;
/* Find the last typedef for the type. */
- while (TYPE_TARGET_TYPE (last) != NULL
- && (TYPE_TARGET_TYPE (last)->code ()
+ while (last->target_type () != NULL
+ && (last->target_type ()->code ()
== TYPE_CODE_TYPEDEF))
- last = TYPE_TARGET_TYPE (last);
+ last = last->target_type ();
/* If there is only one typedef for this anonymous type,
do not substitute it. */
@@ -1336,7 +1336,7 @@ add_symbol_overload_list_adl_namespace (struct type *type,
if (type->code () == TYPE_CODE_TYPEDEF)
type = check_typedef (type);
else
- type = TYPE_TARGET_TYPE (type);
+ type = type->target_type ();
}
type_name = type->name ();