pahole: enumeration__lookup_enumerator() 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 3ff11828fe
commit 4b877c8e67
1 changed files with 2 additions and 2 deletions

View File

@ -1504,7 +1504,7 @@ static struct enumerator *enumerations__lookup_entry_from_value(struct list_head
return NULL;
}
static int64_t enumeration__lookup_enumerator(struct type *enumeration, struct cu *cu, const char *enumerator)
static int64_t enumeration__lookup_enumerator(struct type *enumeration, const char *enumerator)
{
struct enumerator *entry;
@ -1527,7 +1527,7 @@ static int64_t enumerations__lookup_enumerator(struct list_head *enumerations, c
struct tag_cu_node *pos;
list_for_each_entry(pos, enumerations, node) {
int64_t value = enumeration__lookup_enumerator(tag__type(pos->tc.tag), pos->tc.cu, enumerator);
int64_t value = enumeration__lookup_enumerator(tag__type(pos->tc.tag), enumerator);
if (value != -1)
return value;
}