mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user