forked from Imagelibrary/binutils-gdb
gdb: remove TYPE_FIELD_BITSIZE
Replace with type::field + field::bitsize. Change-Id: I2a24755a33683e4a2775a6d2a7b7a9ae7362e43a Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
committed by
Simon Marchi
parent
3be8c91910
commit
3757d2d44f
@@ -106,7 +106,7 @@ convert_struct_or_union (compile_c_instance *context, struct type *type)
|
||||
for (i = 0; i < type->num_fields (); ++i)
|
||||
{
|
||||
gcc_type field_type;
|
||||
unsigned long bitsize = TYPE_FIELD_BITSIZE (type, i);
|
||||
unsigned long bitsize = type->field (i).bitsize ();
|
||||
|
||||
field_type = context->convert_type (type->field (i).type ());
|
||||
if (bitsize == 0)
|
||||
|
||||
Reference in New Issue
Block a user