diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-01-28 11:19:50 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-04-27 22:05:03 -0400 |
commit | 6c00f721c834e2c622eb995a58f02900b6d98574 (patch) | |
tree | 5eed7fcd03403d92fa6c0297582b94d1b74358fe /gdb/compile/compile-object-load.c | |
parent | 4b8791e10e574d3279e6783b58556893b0c92853 (diff) | |
download | binutils-6c00f721c834e2c622eb995a58f02900b6d98574.zip binutils-6c00f721c834e2c622eb995a58f02900b6d98574.tar.gz binutils-6c00f721c834e2c622eb995a58f02900b6d98574.tar.bz2 |
gdb: remove BLOCK_FUNCTION macro
Replace with equivalent methods.
Change-Id: I31ec00f5bf85335c8b23d306ca0fe0b84d489101
Diffstat (limited to 'gdb/compile/compile-object-load.c')
-rw-r--r-- | gdb/compile/compile-object-load.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/compile/compile-object-load.c b/gdb/compile/compile-object-load.c index 2303381..89a4785 100644 --- a/gdb/compile/compile-object-load.c +++ b/gdb/compile/compile-object-load.c @@ -431,7 +431,7 @@ get_out_value_type (struct symbol *func_sym, struct objfile *objfile, const struct block *function_block; block = BLOCKVECTOR_BLOCK (bv, block_loop); - if (BLOCK_FUNCTION (block) != NULL) + if (block->function () != NULL) continue; gdb_val_sym = block_lookup_symbol (block, COMPILE_I_EXPR_VAL, @@ -445,7 +445,7 @@ get_out_value_type (struct symbol *func_sym, struct objfile *objfile, && function_block != BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK)) { function_block = BLOCK_SUPERBLOCK (function_block); - function = BLOCK_FUNCTION (function_block); + function = function_block->function (); if (function != NULL) break; } |