pahole: enumeration__lookup_entry_from_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:
Arnaldo Carvalho de Melo 2021-06-25 09:56:00 -03:00
parent f8d98eff75
commit 1edca26552
1 changed files with 2 additions and 2 deletions

View File

@ -1477,7 +1477,7 @@ static const char *enumerations__lookup_value(struct list_head *enumerations, ui
return NULL;
}
static struct enumerator *enumeration__lookup_entry_from_value(struct type *enumeration, struct cu *cu, uint64_t value)
static struct enumerator *enumeration__lookup_entry_from_value(struct type *enumeration, uint64_t value)
{
struct enumerator *entry;
@ -1494,7 +1494,7 @@ static struct enumerator *enumerations__lookup_entry_from_value(struct list_head
struct tag_cu_node *pos;
list_for_each_entry(pos, enumerations, node) {
struct enumerator *enumerator = enumeration__lookup_entry_from_value(tag__type(pos->tc.tag), pos->tc.cu, value);
struct enumerator *enumerator = enumeration__lookup_entry_from_value(tag__type(pos->tc.tag), value);
if (enumerator) {
*cup = pos->tc.cu;
return enumerator;