forked from Imagelibrary/binutils-gdb
gdb: remove TYPE_FIELD_BITPOS
Remove TYPE_FIELD_BITPOS, replace its uses with type::field + field::loc_bitpos. Change-Id: Iccd8d5a77e5352843a837babaa6bd284162e0320
This commit is contained in:
@@ -195,7 +195,7 @@ vtable_address_point_offset (struct gdbarch *gdbarch)
|
||||
struct type *vtable_type
|
||||
= (struct type *) gdbarch_data (gdbarch, vtable_type_gdbarch_data);
|
||||
|
||||
return (TYPE_FIELD_BITPOS (vtable_type, vtable_field_virtual_functions)
|
||||
return (vtable_type->field (vtable_field_virtual_functions).loc_bitpos ()
|
||||
/ TARGET_CHAR_BIT);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user