Remove unused field from debug_fmt_ops
Nothing seemed to use the 'tag__orig_type' method in debug_fmt_ops. It was simpler to remove it than to try to fix it for the next patch.
This commit is contained in:
parent
4df110dcc4
commit
5ef26a053d
|
@ -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,
|
||||
};
|
||||
|
|
10
dwarves.h
10
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)
|
||||
|
|
Loading…
Reference in New Issue