[CLASSES]: Add missing ftype__has_parm_of_type prototype

And fix its usage in ctracer and pfunct, guess the cmake adoption
is still a little problematic...

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2007-01-02 02:37:24 -02:00
parent 2d08b4d00f
commit 0f5b2d57ce
3 changed files with 5 additions and 4 deletions

View File

@ -264,8 +264,9 @@ static inline int function__inlined(const struct function *self)
self->inlined == DW_INL_declared_inlined);
}
extern int function__has_parameter_of_type(const struct function *self,
const struct tag *target);
extern int ftype__has_parm_of_type(const struct ftype *self,
const struct tag *target,
const struct cu *cu);
extern const char *tag__name(const struct tag *self, const struct cu *cu,
char *bf, size_t len);

View File

@ -30,7 +30,7 @@ static struct function *function__filter(struct function *function,
void *cookie)
{
if (function__inlined(function) ||
!ftype__has_parm_of_type(&function->proto, cookie))
!ftype__has_parm_of_type(&function->proto, cookie, function->cu))
return NULL;
return function;

View File

@ -222,7 +222,7 @@ static int class_iterator(struct function *function, void *cookie)
if (function->inlined)
return 0;
if (ftype__has_parm_of_type(&function->proto, cookie)) {
if (ftype__has_parm_of_type(&function->proto, cookie, function->cu)) {
if (verbose)
function__print(function, 1, 0, 0);
else