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

@@ -267,7 +267,7 @@ frame_unwind_got_optimized (frame_info_ptr frame, int regnum)
struct gdbarch *gdbarch = frame_unwind_arch (frame);
struct type *type = register_type (gdbarch, regnum);
return allocate_optimized_out_value (type);
return value::allocate_optimized_out (type);
}
/* Return a value which indicates that FRAME copied REGNUM into