Have value::bits_synthetic_pointer return bool

This changes value::bits_synthetic_pointer to return bool and fixes up
some fallout from this.

Reviewed-By: Bruno Larsen <blarsen@redhat.com>
This commit is contained in:
Tom Tromey
2023-02-14 10:16:26 -07:00
parent 42c13555ff
commit 19124154b9
5 changed files with 14 additions and 14 deletions

View File

@@ -459,7 +459,7 @@ is_optimized_out_pieced_value (value *v)
/* An implementation of an lval_funcs method to see whether a value is
a synthetic pointer. */
static int
static bool
check_pieced_synthetic_pointer (const value *value, LONGEST bit_offset,
int bit_length)
{
@@ -490,10 +490,10 @@ check_pieced_synthetic_pointer (const value *value, LONGEST bit_offset,
bit_length -= this_size_bits;
if (p->location != DWARF_VALUE_IMPLICIT_POINTER)
return 0;
return false;
}
return 1;
return true;
}
/* An implementation of an lval_funcs method to indirect through a