diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 12:16:29 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:21:07 -0700 |
commit | 970441058c4fc01a3a78773a004196e3037825ed (patch) | |
tree | 0435630ddd08ceda9207cde6343e6abf6798e9f0 /gdb/value.c | |
parent | b9f74d5432ffeef0e2281cb09c28d4b6d0371603 (diff) | |
download | binutils-970441058c4fc01a3a78773a004196e3037825ed.zip binutils-970441058c4fc01a3a78773a004196e3037825ed.tar.gz binutils-970441058c4fc01a3a78773a004196e3037825ed.tar.bz2 |
Convert value_lval_const and deprecated_lval_hack to methods
This converts the value_lval_const and deprecated_lval_hack functions
to be methods on value.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/value.c')
-rw-r--r-- | gdb/value.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/gdb/value.c b/gdb/value.c index b26d4cd..c56c04d 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -1398,18 +1398,6 @@ value::computed_closure () const return m_location.computed.closure; } -enum lval_type * -deprecated_value_lval_hack (struct value *value) -{ - return &value->m_lval; -} - -enum lval_type -value_lval_const (const struct value *value) -{ - return value->m_lval; -} - CORE_ADDR value_address (const struct value *value) { @@ -3694,7 +3682,7 @@ coerce_ref_if_computed (const struct value *arg) if (!TYPE_IS_REFERENCE (check_typedef (arg->type ()))) return NULL; - if (value_lval_const (arg) != lval_computed) + if (arg->lval () != lval_computed) return NULL; funcs = arg->computed_funcs (); |