gdb: remove TYPE_CODE macro
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 14 May 2020 17:46:38 +0000 (13:46 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 14 May 2020 17:46:38 +0000 (13:46 -0400)
commit7813437494ac39f3aef392d06ed5416e84fe386b
tree15290bf5b2bd9d23c59103a6a42b99adc0111d6d
parent67607e24d0413828acdfa9bc38f6fbac40b860b9
gdb: remove TYPE_CODE macro

Remove TYPE_CODE, changing all the call sites to use type::code
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_CODE): Remove.  Change all call sites to use
type::code instead.
145 files changed:
gdb/ChangeLog
gdb/aarch64-tdep.c
gdb/ada-exp.y
gdb/ada-lang.c
gdb/ada-tasks.c
gdb/ada-typeprint.c
gdb/ada-valprint.c
gdb/ada-varobj.c
gdb/alpha-tdep.c
gdb/amd64-tdep.c
gdb/amd64-windows-tdep.c
gdb/arc-tdep.c
gdb/arm-tdep.c
gdb/avr-tdep.c
gdb/ax-gdb.c
gdb/blockframe.c
gdb/breakpoint.c
gdb/c-exp.y
gdb/c-lang.c
gdb/c-typeprint.c
gdb/c-valprint.c
gdb/c-varobj.c
gdb/cli/cli-cmds.c
gdb/cli/cli-utils.c
gdb/coffread.c
gdb/compile/compile-c-support.c
gdb/compile/compile-c-symbols.c
gdb/compile/compile-c-types.c
gdb/compile/compile-cplus-symbols.c
gdb/compile/compile-cplus-types.c
gdb/compile/compile-object-load.c
gdb/compile/compile-object-run.c
gdb/completer.c
gdb/cp-namespace.c
gdb/cp-support.c
gdb/cp-valprint.c
gdb/cris-tdep.c
gdb/ctfread.c
gdb/d-exp.y
gdb/d-namespace.c
gdb/d-valprint.c
gdb/dwarf2/expr.c
gdb/dwarf2/loc.c
gdb/dwarf2/read.c
gdb/eval.c
gdb/expprint.c
gdb/f-lang.c
gdb/f-typeprint.c
gdb/f-valprint.c
gdb/fbsd-tdep.c
gdb/findvar.c
gdb/frv-tdep.c
gdb/gdbarch-selftests.c
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/gnu-v2-abi.c
gdb/gnu-v3-abi.c
gdb/go-exp.y
gdb/go-lang.c
gdb/go-typeprint.c
gdb/go-valprint.c
gdb/guile/scm-lazy-string.c
gdb/guile/scm-math.c
gdb/guile/scm-type.c
gdb/guile/scm-value.c
gdb/h8300-tdep.c
gdb/hppa-tdep.c
gdb/i386-darwin-tdep.c
gdb/i386-tdep.c
gdb/i386-windows-tdep.c
gdb/i387-tdep.c
gdb/ia64-tdep.c
gdb/infcall.c
gdb/infcmd.c
gdb/iq2000-tdep.c
gdb/language.c
gdb/linespec.c
gdb/lm32-tdep.c
gdb/m2-lang.c
gdb/m2-typeprint.c
gdb/m2-valprint.c
gdb/m32c-tdep.c
gdb/m32r-tdep.c
gdb/m68hc11-tdep.c
gdb/m68k-tdep.c
gdb/mdebugread.c
gdb/mi/mi-cmd-stack.c
gdb/mi/mi-cmd-var.c
gdb/mi/mi-main.c
gdb/mips-tdep.c
gdb/mn10300-tdep.c
gdb/msp430-tdep.c
gdb/nds32-tdep.c
gdb/nios2-tdep.c
gdb/objc-lang.c
gdb/opencl-lang.c
gdb/or1k-tdep.c
gdb/p-exp.y
gdb/p-lang.c
gdb/p-typeprint.c
gdb/p-valprint.c
gdb/ppc-linux-tdep.c
gdb/ppc-nbsd-tdep.c
gdb/ppc-sysv-tdep.c
gdb/printcmd.c
gdb/python/py-finishbreakpoint.c
gdb/python/py-framefilter.c
gdb/python/py-lazy-string.c
gdb/python/py-type.c
gdb/python/py-value.c
gdb/python/py-xmethods.c
gdb/regcache.c
gdb/reggroups.c
gdb/riscv-tdep.c
gdb/rl78-tdep.c
gdb/rs6000-aix-tdep.c
gdb/rs6000-lynx178-tdep.c
gdb/rs6000-tdep.c
gdb/rust-exp.y
gdb/rust-lang.c
gdb/rx-tdep.c
gdb/s12z-tdep.c
gdb/s390-tdep.c
gdb/score-tdep.c
gdb/sh-tdep.c
gdb/sparc-tdep.c
gdb/sparc64-tdep.c
gdb/stabsread.c
gdb/stack.c
gdb/symmisc.c
gdb/symtab.c
gdb/target-float.c
gdb/tic6x-tdep.c
gdb/tilegx-tdep.c
gdb/tracepoint.c
gdb/typeprint.c
gdb/v850-tdep.c
gdb/valarith.c
gdb/valops.c
gdb/valprint.c
gdb/value.c
gdb/varobj.c
gdb/vax-tdep.c
gdb/xstormy16-tdep.c
gdb/xtensa-tdep.c