mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-02 19:46:09 +08:00
gdb: remove TYPE_LOW_BOUND_KIND and TYPE_HIGH_BOUND_KIND
Remove the macros, use the getters of `struct dynamic_prop` instead. gdb/ChangeLog: * gdbtypes.h (TYPE_LOW_BOUND_KIND, TYPE_HIGH_BOUND_KIND): Remove. Update all callers to use dynamic_prop::kind. Change-Id: Icb1fc761f675bfac934209f8102392504d905c44
This commit is contained in:

committed by
Simon Marchi

parent
064d9cb9e7
commit
3b606f384d
@ -44,15 +44,15 @@ convert_array (compile_c_instance *context, struct type *type)
|
||||
|
||||
element_type = context->convert_type (TYPE_TARGET_TYPE (type));
|
||||
|
||||
if (TYPE_LOW_BOUND_KIND (range) != PROP_CONST)
|
||||
if (range->bounds ()->low.kind () != PROP_CONST)
|
||||
return context->plugin ().error (_("array type with non-constant"
|
||||
" lower bound is not supported"));
|
||||
if (range->bounds ()->low.const_val () != 0)
|
||||
return context->plugin ().error (_("cannot convert array type with "
|
||||
"non-zero lower bound to C"));
|
||||
|
||||
if (TYPE_HIGH_BOUND_KIND (range) == PROP_LOCEXPR
|
||||
|| TYPE_HIGH_BOUND_KIND (range) == PROP_LOCLIST)
|
||||
if (range->bounds ()->high.kind () == PROP_LOCEXPR
|
||||
|| range->bounds ()->high.kind () == PROP_LOCLIST)
|
||||
{
|
||||
gcc_type result;
|
||||
|
||||
|
Reference in New Issue
Block a user