Now that the function prototype representation has been updated in the BTF-derived ftype, no special handling is needed for printing BTF functions. Signed-off-by: Alan Maguire <alan.maguire@xxxxxxxxxx> --- dwarves_fprintf.c | 2 +- pfunct.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dwarves_fprintf.c b/dwarves_fprintf.c index 1ec478c..557fe7a 100644 --- a/dwarves_fprintf.c +++ b/dwarves_fprintf.c @@ -1402,7 +1402,7 @@ static size_t function__fprintf(const struct tag *tag, const struct cu *cu, const struct conf_fprintf *conf, FILE *fp) { struct function *func = tag__function(tag); - struct ftype *ftype = func->btf ? tag__ftype(cu__type(cu, func->proto.tag.type)) : &func->proto; + struct ftype *ftype = &func->proto; size_t printed = 0; bool inlined = !conf->strip_inline && function__declared_inline(func); int i; diff --git a/pfunct.c b/pfunct.c index 5a6dd59..61cefd5 100644 --- a/pfunct.c +++ b/pfunct.c @@ -326,7 +326,7 @@ static int function__emit_type_definitions(struct function *func, struct cu *cu, FILE *fp) { struct parameter *pos; - struct ftype *proto = func->btf ? tag__ftype(cu__type(cu, func->proto.tag.type)) : &func->proto; + struct ftype *proto = &func->proto; struct tag *type = cu__type(cu, proto->tag.type); retry_return_type: -- 2.43.5