Turn allocate_computed_value into static "constructor"

This turns allocate_computed_value into a static "constructor" of
value.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
Tom Tromey
2023-01-31 13:29:49 -07:00
parent 317c3ed9fc
commit b64e260290
7 changed files with 14 additions and 15 deletions

View File

@@ -1359,7 +1359,7 @@ value_of_dwarf_reg_entry (struct type *type, frame_info_ptr frame,
caller_per_cu,
caller_per_objfile);
val = allocate_computed_value (type, &entry_data_value_funcs,
val = value::allocate_computed (type, &entry_data_value_funcs,
release_value (target_val).release ());
/* Copy the referencing pointer to the new computed value. */