diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 13:25:17 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:21:07 -0700 |
commit | 317c3ed9fc9bc5dacd267d131e8c9ca7c1cbdced (patch) | |
tree | 20bca3a06c842e4eed5101debd1f672539e87714 /gdb/rust-lang.c | |
parent | cbe793af8831a7244de326d6b07c60c197f096a2 (diff) | |
download | binutils-317c3ed9fc9bc5dacd267d131e8c9ca7c1cbdced.zip binutils-317c3ed9fc9bc5dacd267d131e8c9ca7c1cbdced.tar.gz binutils-317c3ed9fc9bc5dacd267d131e8c9ca7c1cbdced.tar.bz2 |
Turn allocate_value into a static "constructor"
This changes allocate_value to be a static "constructor" of value.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/rust-lang.c')
-rw-r--r-- | gdb/rust-lang.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c index 8f09536..edffad4 100644 --- a/gdb/rust-lang.c +++ b/gdb/rust-lang.c @@ -1351,7 +1351,7 @@ eval_op_rust_array (struct type *expect_type, struct expression *exp, { struct type *arraytype = lookup_array_range_type (elt->type (), 0, copies - 1); - return allocate_value (arraytype); + return value::allocate (arraytype); } } @@ -1518,7 +1518,7 @@ rust_aggregate_operation::evaluate (struct type *expect_type, } if (noside == EVAL_AVOID_SIDE_EFFECTS) - result = allocate_value (type); + result = value::allocate (type); else result = value_at_lazy (type, addr); |