int
block_inlined_p (const struct block *bl)
{
- return BLOCK_FUNCTION (bl) != NULL && SYMBOL_INLINED (BLOCK_FUNCTION (bl));
+ return BLOCK_FUNCTION (bl) != NULL && BLOCK_FUNCTION (bl)->is_inlined ();
}
/* A helper function that checks whether PC is in the blockvector BL.
/* SYMBOL_BLOCK_VALUE (sym) will be filled in later by
finish_block. */
sym->set_aclass_index (LOC_BLOCK);
- SYMBOL_INLINED (sym) = 1;
+ sym->set_is_inlined (1);
list_to_add = cu->list_in_scope;
break;
case DW_TAG_template_value_param:
{
/* Restrict calls to CALLBACK to symbols
representing inline symbols only. */
- if (SYMBOL_INLINED (bsym->symbol))
+ if (bsym->symbol->is_inlined ())
return callback (bsym);
return true;
});
m_aclass_index (0),
m_is_objfile_owned (1),
m_is_argument (0),
- is_inlined (0),
+ m_is_inlined (0),
maybe_copied (0),
subclass (SYMBOL_NONE),
artificial (false)
m_is_argument = is_argument;
}
+ bool is_inlined () const
+ {
+ return m_is_inlined;
+ }
+
+ void set_is_inlined (bool is_inlined)
+ {
+ m_is_inlined = is_inlined;
+ }
+
/* Data type of value */
struct type *type = nullptr;
unsigned m_is_argument : 1;
/* Whether this is an inlined function (class LOC_BLOCK only). */
- unsigned is_inlined : 1;
+ unsigned m_is_inlined : 1;
/* For LOC_STATIC only, if this is set, then the symbol might be
subject to copy relocation. In this case, a minimal symbol
/* Note: There is no accessor macro for symbol.owner because it is
"private". */
-#define SYMBOL_INLINED(symbol) (symbol)->is_inlined
#define SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION(symbol) \
(((symbol)->subclass) == SYMBOL_TEMPLATE)
#define SYMBOL_TYPE(symbol) (symbol)->type