mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +08:00
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:
@ -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. */
|
||||
|
||||
|
Reference in New Issue
Block a user