[LIB]: Make all callers of function__print use tag__print instead
And since there are no external users now, just unexport it, ditto for tag__print_decl_info. Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
parent
907831071f
commit
16c0586602
|
@ -168,8 +168,7 @@ static void emit_function_defs(const char *fn)
|
||||||
if (f != NULL) {
|
if (f != NULL) {
|
||||||
cus__emit_ftype_definitions(kprobes_cus, cu,
|
cus__emit_ftype_definitions(kprobes_cus, cu,
|
||||||
&tag__function(f)->proto);
|
&tag__function(f)->proto);
|
||||||
tag__print_decl_info(f);
|
tag__print(f, cu, NULL, NULL);
|
||||||
function__print(f, cu);
|
|
||||||
puts(";\n");
|
puts(";\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1643,7 +1643,7 @@ print_it:
|
||||||
return len - (l - n);
|
return len - (l - n);
|
||||||
}
|
}
|
||||||
|
|
||||||
void function__print(const struct tag *tag_self, const struct cu *cu)
|
static void function__print(const struct tag *tag_self, const struct cu *cu)
|
||||||
{
|
{
|
||||||
struct function *self = tag__function(tag_self);
|
struct function *self = tag__function(tag_self);
|
||||||
char bf[2048];
|
char bf[2048];
|
||||||
|
|
|
@ -235,10 +235,8 @@ struct enumerator {
|
||||||
extern void class__find_holes(struct class *self, const struct cu *cu);
|
extern void class__find_holes(struct class *self, const struct cu *cu);
|
||||||
extern void tag__print(const struct tag *self, const struct cu *cu,
|
extern void tag__print(const struct tag *self, const struct cu *cu,
|
||||||
const char *prefix, const char *suffix);
|
const char *prefix, const char *suffix);
|
||||||
extern void tag__print_decl_info(const struct tag *self);
|
|
||||||
|
|
||||||
extern const char *function__name(struct function *self, const struct cu *cu);
|
extern const char *function__name(struct function *self, const struct cu *cu);
|
||||||
extern void function__print(const struct tag *tag_self, const struct cu *cu);
|
|
||||||
extern void function__print_stats(const struct tag *tag_self,
|
extern void function__print_stats(const struct tag *tag_self,
|
||||||
const struct cu *cu);
|
const struct cu *cu);
|
||||||
|
|
||||||
|
|
15
pfunct.c
15
pfunct.c
|
@ -119,8 +119,7 @@ static void fn_stats_size_fmtr(const struct fn_stats *self)
|
||||||
static void fn_stats_fmtr(const struct fn_stats *self)
|
static void fn_stats_fmtr(const struct fn_stats *self)
|
||||||
{
|
{
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
tag__print_decl_info(self->tag);
|
tag__print(self->tag, self->cu, NULL, NULL);
|
||||||
function__print(self->tag, self->cu);
|
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
if (show_variables || show_inline_expansions)
|
if (show_variables || show_inline_expansions)
|
||||||
function__print_stats(self->tag, self->cu);
|
function__print_stats(self->tag, self->cu);
|
||||||
|
@ -274,12 +273,11 @@ static int class_iterator(struct tag *tag, struct cu *cu, void *cookie)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (ftype__has_parm_of_type(&function->proto, cookie, cu)) {
|
if (ftype__has_parm_of_type(&function->proto, cookie, cu)) {
|
||||||
if (verbose) {
|
if (verbose)
|
||||||
tag__print_decl_info(tag);
|
tag__print(tag, cu, NULL, NULL);
|
||||||
function__print(tag, cu);
|
else
|
||||||
|
fputs(function__name(function, cu), stdout);
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
} else
|
|
||||||
printf("%s\n", function__name(function, cu));
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -303,8 +301,7 @@ static int function_iterator(struct tag *tag, struct cu *cu, void *cookie)
|
||||||
|
|
||||||
function = tag__function(tag);
|
function = tag__function(tag);
|
||||||
if (strcmp(function__name(function, cu), cookie) == 0) {
|
if (strcmp(function__name(function, cu), cookie) == 0) {
|
||||||
tag__print_decl_info(tag);
|
tag__print(tag, cu, NULL, NULL);
|
||||||
function__print(tag, cu);
|
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
if (show_variables || show_inline_expansions)
|
if (show_variables || show_inline_expansions)
|
||||||
function__print_stats(tag, cu);
|
function__print_stats(tag, cu);
|
||||||
|
|
Loading…
Reference in New Issue