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

@ -1189,7 +1189,7 @@ typy_optimized_out (PyObject *self, PyObject *args)
{
struct type *type = ((type_object *) self)->type;
return value_to_value_object (allocate_optimized_out_value (type));
return value_to_value_object (value::allocate_optimized_out (type));
}
/* Return a gdb.Field object for the field named by the argument. */