gdb: remove TYPE_NAME macro
authorSimon Marchi <simon.marchi@efficios.com>
Sat, 16 May 2020 16:16:06 +0000 (12:16 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Sat, 16 May 2020 16:36:05 +0000 (12:36 -0400)
commit7d93a1e0b6af703c75daa93456608f8bb5f34f13
tree463f7922a76e4a9341095339498726b65be181db
parentd0e39ea27cde07011967ab74d39cf13dfe3370c4
gdb: remove TYPE_NAME macro

Remove `TYPE_NAME`, changing all the call sites to use `type::name`
directly.  This is quite a big diff, but this was mostly done using sed
and coccinelle.  A few call sites were done by hand.

gdb/ChangeLog:

* gdbtypes.h (TYPE_NAME): Remove.  Change all cal sites to use
type::name instead.
46 files changed:
gdb/ChangeLog
gdb/ada-lang.c
gdb/ada-typeprint.c
gdb/ax-gdb.c
gdb/c-exp.y
gdb/c-lang.c
gdb/c-typeprint.c
gdb/c-valprint.c
gdb/c-varobj.c
gdb/coffread.c
gdb/compile/compile-c-types.c
gdb/compile/compile-cplus-types.c
gdb/completer.c
gdb/cp-namespace.c
gdb/cp-support.c
gdb/cp-valprint.c
gdb/d-namespace.c
gdb/dwarf2/read.c
gdb/eval.c
gdb/expprint.c
gdb/f-typeprint.c
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/gnu-v2-abi.c
gdb/go-lang.c
gdb/guile/scm-type.c
gdb/infcall.c
gdb/language.c
gdb/linespec.c
gdb/m2-lang.c
gdb/m2-typeprint.c
gdb/mdebugread.c
gdb/opencl-lang.c
gdb/p-exp.y
gdb/p-typeprint.c
gdb/p-valprint.c
gdb/python/py-type.c
gdb/regcache.c
gdb/riscv-tdep.c
gdb/rust-lang.c
gdb/stabsread.c
gdb/symmisc.c
gdb/symtab.c
gdb/valarith.c
gdb/valops.c
gdb/value.c