mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +08:00
gdb: remove TYPE_TARGET_TYPE
Remove the macro, replace all uses by calls to type::target_type. Change-Id: Ie51d3e1e22f94130176d6abd723255282bb6d1ed
This commit is contained in:
@ -410,7 +410,7 @@ static gcc_type
|
||||
compile_cplus_convert_reference (compile_cplus_instance *instance,
|
||||
struct type *type)
|
||||
{
|
||||
gcc_type target = instance->convert_type (TYPE_TARGET_TYPE (type));
|
||||
gcc_type target = instance->convert_type (type->target_type ());
|
||||
|
||||
enum gcc_cp_ref_qualifiers quals = GCC_CP_REF_QUAL_NONE;
|
||||
switch (type->code ())
|
||||
@ -442,7 +442,7 @@ static gcc_type
|
||||
compile_cplus_convert_pointer (compile_cplus_instance *instance,
|
||||
struct type *type)
|
||||
{
|
||||
gcc_type target = instance->convert_type (TYPE_TARGET_TYPE (type));
|
||||
gcc_type target = instance->convert_type (type->target_type ());
|
||||
|
||||
return instance->convert_pointer_base (target);
|
||||
}
|
||||
@ -454,7 +454,7 @@ compile_cplus_convert_array (compile_cplus_instance *instance,
|
||||
struct type *type)
|
||||
{
|
||||
struct type *range = type->index_type ();
|
||||
gcc_type element_type = instance->convert_type (TYPE_TARGET_TYPE (type));
|
||||
gcc_type element_type = instance->convert_type (type->target_type ());
|
||||
|
||||
if (range->bounds ()->low.kind () != PROP_CONST)
|
||||
{
|
||||
@ -697,7 +697,7 @@ compile_cplus_convert_memberptr (compile_cplus_instance *instance,
|
||||
|
||||
gcc_type class_type = instance->convert_type (containing_class);
|
||||
gcc_type member_type
|
||||
= instance->convert_type (TYPE_TARGET_TYPE (type));
|
||||
= instance->convert_type (type->target_type ());
|
||||
|
||||
return instance->plugin ().build_pointer_to_member_type
|
||||
(class_type, member_type);
|
||||
@ -961,7 +961,7 @@ compile_cplus_convert_func (compile_cplus_instance *instance,
|
||||
struct type *type, bool strip_artificial)
|
||||
{
|
||||
int is_varargs = type->has_varargs ();
|
||||
struct type *target_type = TYPE_TARGET_TYPE (type);
|
||||
struct type *target_type = type->target_type ();
|
||||
|
||||
/* Functions with no debug info have no return type. Ideally we'd
|
||||
want to fallback to the type of the cast just before the
|
||||
@ -1086,7 +1086,7 @@ static gcc_type
|
||||
compile_cplus_convert_complex (compile_cplus_instance *instance,
|
||||
struct type *type)
|
||||
{
|
||||
gcc_type base = instance->convert_type (TYPE_TARGET_TYPE (type));
|
||||
gcc_type base = instance->convert_type (type->target_type ());
|
||||
|
||||
return instance->plugin ().build_complex_type (base);
|
||||
}
|
||||
|
Reference in New Issue
Block a user