diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 16:23:22 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:22:17 -0700 |
commit | aa9f4538ccbed2b5a84ece57c047e4f68a38c69e (patch) | |
tree | 89773923872228ec388b90f476001f51b2f7d74e /gdb/eval.c | |
parent | d00664dbba2802bacfed2335b6f249fc418182a0 (diff) | |
download | gdb-aa9f4538ccbed2b5a84ece57c047e4f68a38c69e.zip gdb-aa9f4538ccbed2b5a84ece57c047e4f68a38c69e.tar.gz gdb-aa9f4538ccbed2b5a84ece57c047e4f68a38c69e.tar.bz2 |
Turn value_non_lval and value_force_lval into methods
This changes value_non_lval and value_force_lval to be methods of
value.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/eval.c')
-rw-r--r-- | gdb/eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -111,7 +111,7 @@ expression::evaluate (struct type *expect_type, enum noside noside) if (stack_temporaries.has_value () && value_in_thread_stack_temporaries (retval, inferior_thread ())) - retval = value_non_lval (retval); + retval = retval->non_lval (); return retval; } @@ -1820,7 +1820,7 @@ eval_op_postinc (struct type *expect_type, struct expression *exp, } else { - struct value *arg3 = value_non_lval (arg1); + struct value *arg3 = arg1->non_lval (); struct value *arg2; if (ptrmath_type_p (exp->language_defn, arg1->type ())) @@ -1854,7 +1854,7 @@ eval_op_postdec (struct type *expect_type, struct expression *exp, } else { - struct value *arg3 = value_non_lval (arg1); + struct value *arg3 = arg1->non_lval (); struct value *arg2; if (ptrmath_type_p (exp->language_defn, arg1->type ())) |