diff --git a/dwarf_loader.c b/dwarf_loader.c index 72f665f..0016f67 100644 --- a/dwarf_loader.c +++ b/dwarf_loader.c @@ -1940,13 +1940,6 @@ static unsigned long long dwarf_tag__orig_id(const struct tag *self, return cu->extra_dbg_info ? dtag->id : 0; } -static unsigned long long dwarf_tag__orig_type(const struct tag *self, - const struct cu *cu) -{ - struct dwarf_tag *dtag = self->priv; - return cu->extra_dbg_info ? dtag->type : 0; -} - static const char *dwarf__strings_ptr(const struct cu *cu __unused, strings_t s) { @@ -2240,5 +2233,4 @@ struct debug_fmt_ops dwarf__ops = { .tag__decl_file = dwarf_tag__decl_file, .tag__decl_line = dwarf_tag__decl_line, .tag__orig_id = dwarf_tag__orig_id, - .tag__orig_type = dwarf_tag__orig_type, }; diff --git a/dwarves.h b/dwarves.h index 7257998..4b29022 100644 --- a/dwarves.h +++ b/dwarves.h @@ -160,8 +160,6 @@ struct debug_fmt_ops { const struct cu *cu); unsigned long long (*tag__orig_id)(const struct tag *self, const struct cu *cu); - unsigned long long (*tag__orig_type)(const struct tag *self, - const struct cu *cu); void (*tag__free_orig_info)(struct tag *self, struct cu *cu); const char *(*function__name)(struct function *self, @@ -441,14 +439,6 @@ static inline unsigned long long tag__orig_id(const struct tag *self, return 0; } -static inline unsigned long long tag__orig_type(const struct tag *self, - const struct cu *cu) -{ - if (cu->dfops && cu->dfops->tag__orig_type) - return cu->dfops->tag__orig_type(self, cu); - return 0; -} - static inline void tag__free_orig_info(struct tag *self, struct cu *cu) { if (cu->dfops && cu->dfops->tag__free_orig_info)