mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-14 20:46:12 +08:00
Turn value_type into method
This changes value_type to be a method of value. Much of this patch was written by script. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@ -423,7 +423,7 @@ python_xmethod_worker::do_get_result_type (value *obj,
|
||||
return EXT_LANG_RC_OK;
|
||||
}
|
||||
|
||||
obj_type = check_typedef (value_type (obj));
|
||||
obj_type = check_typedef (obj->type ());
|
||||
this_type = check_typedef (type_object_to_type (m_this_type));
|
||||
if (obj_type->code () == TYPE_CODE_PTR)
|
||||
{
|
||||
@ -508,7 +508,7 @@ python_xmethod_worker::invoke (struct value *obj,
|
||||
struct type *obj_type, *this_type;
|
||||
struct value *res = NULL;
|
||||
|
||||
obj_type = check_typedef (value_type (obj));
|
||||
obj_type = check_typedef (obj->type ());
|
||||
this_type = check_typedef (type_object_to_type (m_this_type));
|
||||
if (obj_type->code () == TYPE_CODE_PTR)
|
||||
{
|
||||
|
Reference in New Issue
Block a user