pahole: enumeration__lookup_value() doesn't need a 'cu' argument
With the conversion of ->name members to plain char strings, no need to use 'cu' to get the old string_t index and find the per-cu string table. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
4b877c8e67
commit
e18c60d793
4
pahole.c
4
pahole.c
|
@ -1452,7 +1452,7 @@ static int class_member__fprintf_bitfield_value(struct class_member *member, voi
|
|||
return fprintf(fp, format, class_member__bitfield_value(member, instance));
|
||||
}
|
||||
|
||||
static const char *enumeration__lookup_value(struct type *enumeration, struct cu *cu, uint64_t value)
|
||||
static const char *enumeration__lookup_value(struct type *enumeration, uint64_t value)
|
||||
{
|
||||
struct enumerator *entry;
|
||||
|
||||
|
@ -1469,7 +1469,7 @@ static const char *enumerations__lookup_value(struct list_head *enumerations, ui
|
|||
struct tag_cu_node *pos;
|
||||
|
||||
list_for_each_entry(pos, enumerations, node) {
|
||||
const char *s = enumeration__lookup_value(tag__type(pos->tc.tag), pos->tc.cu, value);
|
||||
const char *s = enumeration__lookup_value(tag__type(pos->tc.tag), value);
|
||||
if (s)
|
||||
return s;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue