mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
gdb: remove SYMBOL_TYPE macro
Add a getter and a setter for a symbol's type. Remove the corresponding macro and adjust all callers. Change-Id: Ie1a137744c5bfe1df4d4f9ae5541c5299577c8de
This commit is contained in:
@@ -857,7 +857,7 @@ block_find_symbol (const struct block *block, const char *name,
|
||||
int
|
||||
block_find_non_opaque_type (struct symbol *sym, void *data)
|
||||
{
|
||||
return !TYPE_IS_OPAQUE (SYMBOL_TYPE (sym));
|
||||
return !TYPE_IS_OPAQUE (sym->type ());
|
||||
}
|
||||
|
||||
/* See block.h. */
|
||||
@@ -867,7 +867,7 @@ block_find_non_opaque_type_preferred (struct symbol *sym, void *data)
|
||||
{
|
||||
struct symbol **best = (struct symbol **) data;
|
||||
|
||||
if (!TYPE_IS_OPAQUE (SYMBOL_TYPE (sym)))
|
||||
if (!TYPE_IS_OPAQUE (sym->type ()))
|
||||
return 1;
|
||||
*best = sym;
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user