Turn allocate_optimized_out_value into static "constructor"

This turns allocate_optimized_out_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:30:54 -07:00
parent b64e260290
commit b27556e3c1
11 changed files with 21 additions and 20 deletions

View File

@ -674,7 +674,7 @@ read_frame_arg (const frame_print_options &fp_opts,
|| (fp_opts.print_entry_values == print_entry_values_preferred
&& (!val || value_optimized_out (val))))
{
entryval = allocate_optimized_out_value (sym->type ());
entryval = value::allocate_optimized_out (sym->type ());
entryval_error = NULL;
}
}