Turn value_stack and set_value_stack functions into methods

This changes the value_stack and set_value_stack functions to be
methods of value.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
Tom Tromey
2023-01-31 11:11:17 -07:00
parent 3ee3b2700d
commit c8580184bb
5 changed files with 10 additions and 19 deletions

View File

@ -295,6 +295,12 @@ struct value
void set_enclosing_type (struct type *new_type);
int stack () const
{ return m_stack; }
void set_stack (int val)
{ m_stack = val; }
/* Type of value; either not an lval, or one of the various
different possible kinds of lval. */
@ -568,9 +574,6 @@ extern const struct lval_funcs *value_computed_funcs (const struct value *);
extern void *value_computed_closure (const struct value *value);
extern int value_stack (const struct value *);
extern void set_value_stack (struct value *value, int val);
/* Throw an error complaining that the value has been optimized
out. */