Turn allocate_value_lazy into a static "constructor"
authorTom Tromey <tom@tromey.com>
Tue, 31 Jan 2023 20:24:00 +0000 (13:24 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 13 Feb 2023 22:21:07 +0000 (15:21 -0700)
commitcbe793af8831a7244de326d6b07c60c197f096a2
treeebdab02eb11031a7b713952444ea5a7257a523d6
parentf29de665046c1b1a2feabf8d3d584b3b89699e10
Turn allocate_value_lazy into a static "constructor"

This changes allocate_value_lazy to be a static "constructor" of
struct value.

I considered trying to change value to use ordinary new/delete, but it
seems to me that due to reference counting, we may someday want to
change these static constructors to return value_ref_ptr instead.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/ada-lang.c
gdb/findvar.c
gdb/rust-lang.c
gdb/valops.c
gdb/value.c
gdb/value.h