From a75c342ac2fc6c54572b3c38651b3ed2015f7c8a Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Wed, 30 Jun 2021 10:07:14 -0300 Subject: [PATCH] core: Ditch tag__free_orig_info(), unused Since we stopped using per-cu obstacks we don't need it. If we ever want to use it we can do per thread obstacks. Signed-off-by: Arnaldo Carvalho de Melo --- dwarves.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/dwarves.h b/dwarves.h index 528629f..dde153f 100644 --- a/dwarves.h +++ b/dwarves.h @@ -201,8 +201,6 @@ struct debug_fmt_ops { const struct cu *cu); unsigned long long (*tag__orig_id)(const struct tag *tag, const struct cu *cu); - void (*tag__free_orig_info)(struct tag *tag, - struct cu *cu); void (*cu__delete)(struct cu *cu); bool has_alignment_info; }; @@ -527,12 +525,6 @@ static inline unsigned long long tag__orig_id(const struct tag *tag, return 0; } -static inline void tag__free_orig_info(struct tag *tag, struct cu *cu) -{ - if (cu->dfops && cu->dfops->tag__free_orig_info) - cu->dfops->tag__free_orig_info(tag, cu); -} - size_t tag__fprintf_decl_info(const struct tag *tag, const struct cu *cu, FILE *fp); size_t tag__fprintf(struct tag *tag, const struct cu *cu,