aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-31 13:30:54 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:21:08 -0700
commitb27556e3c10e197cc31021649a6113bb305b970e (patch)
tree9de98f1568e25b39a573964b113b380428b1b9b1 /gdb/value.h
parentb64e260290108f8eb4f7a75f80a8355448aef7e4 (diff)
downloadgdb-b27556e3c10e197cc31021649a6113bb305b970e.zip
gdb-b27556e3c10e197cc31021649a6113bb305b970e.tar.gz
gdb-b27556e3c10e197cc31021649a6113bb305b970e.tar.bz2
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>
Diffstat (limited to 'gdb/value.h')
-rw-r--r--gdb/value.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/value.h b/gdb/value.h
index dbbb619..4d5ef01 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -175,6 +175,9 @@ public:
const struct lval_funcs *funcs,
void *closure);
+ /* Allocate NOT_LVAL value for type TYPE being OPTIMIZED_OUT. */
+ static struct value *allocate_optimized_out (struct type *type);
+
~value ();
DISABLE_COPY_AND_ASSIGN (value);
@@ -625,8 +628,6 @@ struct lval_funcs
void (*free_closure) (struct value *v);
};
-extern struct value *allocate_optimized_out_value (struct type *type);
-
/* Throw an error complaining that the value has been optimized
out. */