Turn allocate_value into a static "constructor"
This changes allocate_value to be a static "constructor" of value. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
parent
cbe793af88
commit
317c3ed9fc
37 changed files with 135 additions and 128 deletions
|
@ -1351,7 +1351,7 @@ eval_op_rust_array (struct type *expect_type, struct expression *exp,
|
|||
{
|
||||
struct type *arraytype
|
||||
= lookup_array_range_type (elt->type (), 0, copies - 1);
|
||||
return allocate_value (arraytype);
|
||||
return value::allocate (arraytype);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1518,7 +1518,7 @@ rust_aggregate_operation::evaluate (struct type *expect_type,
|
|||
}
|
||||
|
||||
if (noside == EVAL_AVOID_SIDE_EFFECTS)
|
||||
result = allocate_value (type);
|
||||
result = value::allocate (type);
|
||||
else
|
||||
result = value_at_lazy (type, addr);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue