aboutsummaryrefslogtreecommitdiff
path: root/gdb/f-lang.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-31 12:16:29 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:21:07 -0700
commit970441058c4fc01a3a78773a004196e3037825ed (patch)
tree0435630ddd08ceda9207cde6343e6abf6798e9f0 /gdb/f-lang.c
parentb9f74d5432ffeef0e2281cb09c28d4b6d0371603 (diff)
downloadbinutils-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/f-lang.c')
-rw-r--r--gdb/f-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/f-lang.c b/gdb/f-lang.c
index d88e81c..57c31ef 100644
--- a/gdb/f-lang.c
+++ b/gdb/f-lang.c
@@ -458,7 +458,7 @@ fortran_associated (struct gdbarch *gdbarch, const language_defn *lang,
looking the value of the pointer itself. We make the assumption that
a non-associated pointer will be set to 0. This is probably true for
most targets, but might not be true for everyone. */
- if (value_lval_const (target) != lval_memory
+ if (target->lval () != lval_memory
|| type_not_associated (pointer_type)
|| (TYPE_ASSOCIATED_PROP (pointer_type) == nullptr
&& pointer_type->code () == TYPE_CODE_PTR