forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -448,7 +448,7 @@ print_subexp_standard (struct expression *exp, int *pos,
|
||||
(*pos) += 2;
|
||||
if ((int) prec > (int) PREC_PREFIX)
|
||||
fputs_filtered ("(", stream);
|
||||
if (TYPE_CODE (exp->elts[pc + 1].type) == TYPE_CODE_FUNC
|
||||
if (exp->elts[pc + 1].type->code () == TYPE_CODE_FUNC
|
||||
&& exp->elts[pc + 3].opcode == OP_LONG)
|
||||
{
|
||||
struct value_print_options opts;
|
||||
|
||||
Reference in New Issue
Block a user