mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 00:59:15 +08:00
Turn deprecated_value_modifiable into method
This changes deprecated_value_modifiable to be a method of value. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@ -2888,7 +2888,7 @@ ada_value_assign (struct value *toval, struct value *fromval)
|
||||
if (ada_is_direct_array_type (fromval->type ()))
|
||||
fromval = ada_coerce_to_simple_array (fromval);
|
||||
|
||||
if (!deprecated_value_modifiable (toval))
|
||||
if (!toval->deprecated_modifiable ())
|
||||
error (_("Left operand of assignment is not a modifiable lvalue."));
|
||||
|
||||
if (VALUE_LVAL (toval) == lval_memory
|
||||
@ -9531,7 +9531,7 @@ ada_aggregate_operation::assign_aggregate (struct value *container,
|
||||
if (ada_is_direct_array_type (container->type ()))
|
||||
container = ada_coerce_to_simple_array (container);
|
||||
lhs = ada_coerce_ref (lhs);
|
||||
if (!deprecated_value_modifiable (lhs))
|
||||
if (!lhs->deprecated_modifiable ())
|
||||
error (_("Left operand of assignment is not a modifiable lvalue."));
|
||||
|
||||
lhs_type = check_typedef (lhs->type ());
|
||||
|
Reference in New Issue
Block a user