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:
Tom Tromey 2023-01-31 07:52:09 -07:00
parent 7cf57bc5be
commit d0c9791728
107 changed files with 880 additions and 884 deletions

View file

@ -245,7 +245,7 @@ static struct value *
value_struct_element_index (struct value *value, int type_index)
{
struct value *result = NULL;
struct type *type = value_type (value);
struct type *type = value->type ();
type = check_typedef (type);