aboutsummaryrefslogtreecommitdiff
path: root/gdb/compile
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-09-14 11:08:03 -0400
committerSimon Marchi <simon.marchi@efficios.com>2020-09-14 11:08:03 -0400
commitbd63c870088388fc55efbf50f2dfc0592fe874e5 (patch)
treefc002e3c53ff9e8ae8a194b83cc9c87c5292d448 /gdb/compile
parent2062087b358cc5320d52b32c50866dbd08fb2631 (diff)
downloadbinutils-bd63c870088388fc55efbf50f2dfc0592fe874e5.zip
binutils-bd63c870088388fc55efbf50f2dfc0592fe874e5.tar.gz
binutils-bd63c870088388fc55efbf50f2dfc0592fe874e5.tar.bz2
gdb: remove TYPE_VECTOR
gdb/ChangeLog: * gdbtypes.h (TYPE_VECTOR): Remove, replace all uses with type::is_vector. Change-Id: I1ac28755af44b1585c190553f9961288c8fb9137
Diffstat (limited to 'gdb/compile')
-rw-r--r--gdb/compile/compile-c-types.c4
-rw-r--r--gdb/compile/compile-cplus-types.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/gdb/compile/compile-c-types.c b/gdb/compile/compile-c-types.c
index 03536c0..6d9bb37 100644
--- a/gdb/compile/compile-c-types.c
+++ b/gdb/compile/compile-c-types.c
@@ -56,7 +56,7 @@ convert_array (compile_c_instance *context, struct type *type)
{
gcc_type result;
- if (TYPE_VECTOR (type))
+ if (type->is_vector ())
return context->plugin ().error (_("variably-sized vector type"
" is not supported"));
@@ -78,7 +78,7 @@ convert_array (compile_c_instance *context, struct type *type)
count = high_bound + 1;
}
- if (TYPE_VECTOR (type))
+ if (type->is_vector ())
return context->plugin ().build_vector_type (element_type, count);
return context->plugin ().build_array_type (element_type, count);
}
diff --git a/gdb/compile/compile-cplus-types.c b/gdb/compile/compile-cplus-types.c
index 8270def..bb4b267 100644
--- a/gdb/compile/compile-cplus-types.c
+++ b/gdb/compile/compile-cplus-types.c
@@ -475,7 +475,7 @@ compile_cplus_convert_array (compile_cplus_instance *instance,
if (range->bounds ()->high.kind () == PROP_LOCEXPR
|| range->bounds ()->high.kind () == PROP_LOCLIST)
{
- if (TYPE_VECTOR (type))
+ if (type->is_vector ())
{
const char *s = _("variably-sized vector type is not supported");
@@ -499,7 +499,7 @@ compile_cplus_convert_array (compile_cplus_instance *instance,
count = high_bound + 1;
}
- if (TYPE_VECTOR (type))
+ if (type->is_vector ())
return instance->plugin ().build_vector_type (element_type, count);
return instance->plugin ().build_array_type (element_type, count);