diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-09-14 11:08:03 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-09-14 11:08:03 -0400 |
commit | bd63c870088388fc55efbf50f2dfc0592fe874e5 (patch) | |
tree | fc002e3c53ff9e8ae8a194b83cc9c87c5292d448 /gdb/riscv-tdep.c | |
parent | 2062087b358cc5320d52b32c50866dbd08fb2631 (diff) | |
download | gdb-bd63c870088388fc55efbf50f2dfc0592fe874e5.zip gdb-bd63c870088388fc55efbf50f2dfc0592fe874e5.tar.gz gdb-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/riscv-tdep.c')
-rw-r--r-- | gdb/riscv-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/riscv-tdep.c b/gdb/riscv-tdep.c index 0e8cf38..a7c2564 100644 --- a/gdb/riscv-tdep.c +++ b/gdb/riscv-tdep.c @@ -935,7 +935,7 @@ riscv_print_one_register_info (struct gdbarch *gdbarch, { /* If not a vector register, print it also according to its natural format. */ - if (TYPE_VECTOR (regtype) == 0) + if (regtype->is_vector () == 0) { get_user_print_options (&opts); opts.deref_ref = 1; @@ -1772,7 +1772,7 @@ static ULONGEST riscv_type_align (gdbarch *gdbarch, type *type) { type = check_typedef (type); - if (type->code () == TYPE_CODE_ARRAY && TYPE_VECTOR (type)) + if (type->code () == TYPE_CODE_ARRAY && type->is_vector ()) return std::min (TYPE_LENGTH (type), (ULONGEST) BIGGEST_ALIGNMENT); /* Anything else will be aligned by the generic code. */ |