Turn value_parent into method

This changes value_parent to be a method of value.  Much of this patch
was written by script.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
Tom Tromey
2023-01-31 09:56:33 -07:00
parent 5011c493fb
commit fac7bdaaab
5 changed files with 18 additions and 30 deletions

View File

@ -171,7 +171,7 @@ rw_pieced_value (value *v, value *from, bool check_optimized)
ULONGEST bits_to_skip = 8 * value_offset (v);
if (v->bitsize ())
{
bits_to_skip += (8 * value_offset (value_parent (v))
bits_to_skip += (8 * value_offset (v->parent ())
+ v->bitpos ());
if (from != nullptr
&& (type_byte_order (from->type ())