[PREFCNT]: Handle inlined functions too
At least GCC only emits DW_TAG_subprogram for inline functions if they were used somewhere in the CU, even if no DW_TAG_inlined_subroutine tag is emitted due to optimizations reducing inline functions to nothing. Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
parent
7ebee113cc
commit
84a05e88e1
|
@ -109,14 +109,6 @@ static void refcnt_class(struct class *class)
|
|||
static void refcnt_function(struct class *function)
|
||||
{
|
||||
assert(function->tag == DW_TAG_subprogram);
|
||||
/*
|
||||
* We're not interested in inlines at this point, if we
|
||||
* have inline expansions we'll refcount the inline
|
||||
* definition and crawl into its return type and
|
||||
* parameters.
|
||||
*/
|
||||
if (function->inlined)
|
||||
return;
|
||||
|
||||
refcnt_class(function);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue