gdb/riscv: Remove riscv_type_alignment function
authorAndrew Burgess <andrew.burgess@embecosm.com>
Sun, 7 Apr 2019 21:30:37 +0000 (22:30 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 11 Apr 2019 22:40:25 +0000 (23:40 +0100)
commita9158a863c18545634cb0f0462b326aeca30634c
tree9b310fc775e36db1a486c2efeb50394b60b03dd9
parent41077b6625d16cc6c0c4b404a177a8850300b8a0
gdb/riscv: Remove riscv_type_alignment function

Make use of the type_align function and remove riscv_type_alignment as
it is no longer needed.  I tested this against a number of RV32 and
RV64 targets, and I also ran the tests with an assertion in place
checking that the old riscv_type_alignment function gives the same
answer as the common type_align function - it does, and all the tests
still pass.

gdb/ChangeLog:

* riscv-tdep.c (riscv_type_align): New function.
(riscv_type_alignment): Delete.
(riscv_arg_location): Use 'type_align'.
(riscv_gdbarch_init): Register riscv_type_align gdbarch function.
gdb/ChangeLog
gdb/riscv-tdep.c