[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:
Arnaldo Carvalho de Melo 2006-11-17 21:54:34 -02:00
parent 7ebee113cc
commit 84a05e88e1
1 changed files with 0 additions and 8 deletions

View File

@ -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);
}