From 3d967001ecd3b325fc39d7f53ebf7054d1ecd503 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 8 Jun 2020 15:25:53 -0400 Subject: gdb: remove TYPE_INDEX_TYPE macro Remove `TYPE_INDEX_TYPE` macro, changing all the call sites to use `type::index_type` directly. gdb/ChangeLog: * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites to use type::index_type instead. Change-Id: I56715df0bdec89463cda6bd341dac0e01b2faf84 --- gdb/compile/compile-c-symbols.c | 2 +- gdb/compile/compile-c-types.c | 2 +- gdb/compile/compile-cplus-types.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/compile') diff --git a/gdb/compile/compile-c-symbols.c b/gdb/compile/compile-c-symbols.c index 758b12d..84148fa 100644 --- a/gdb/compile/compile-c-symbols.c +++ b/gdb/compile/compile-c-symbols.c @@ -516,7 +516,7 @@ generate_vla_size (compile_instance *compiler, case TYPE_CODE_ARRAY: generate_vla_size (compiler, stream, gdbarch, registers_used, pc, - TYPE_INDEX_TYPE (type), sym); + type->index_type (), sym); generate_vla_size (compiler, stream, gdbarch, registers_used, pc, TYPE_TARGET_TYPE (type), sym); break; diff --git a/gdb/compile/compile-c-types.c b/gdb/compile/compile-c-types.c index c4f5811..3cf89fd 100644 --- a/gdb/compile/compile-c-types.c +++ b/gdb/compile/compile-c-types.c @@ -40,7 +40,7 @@ static gcc_type convert_array (compile_c_instance *context, struct type *type) { gcc_type element_type; - struct type *range = TYPE_INDEX_TYPE (type); + struct type *range = type->index_type (); element_type = context->convert_type (TYPE_TARGET_TYPE (type)); diff --git a/gdb/compile/compile-cplus-types.c b/gdb/compile/compile-cplus-types.c index eb70dfe..20d84a5 100644 --- a/gdb/compile/compile-cplus-types.c +++ b/gdb/compile/compile-cplus-types.c @@ -453,7 +453,7 @@ static gcc_type compile_cplus_convert_array (compile_cplus_instance *instance, struct type *type) { - struct type *range = TYPE_INDEX_TYPE (type); + struct type *range = type->index_type (); gcc_type element_type = instance->convert_type (TYPE_TARGET_TYPE (type)); if (TYPE_LOW_BOUND_KIND (range) != PROP_CONST) -- cgit v1.1