core: class__find_member_by_name() doesn't need a cu pointer

Since we don't need the cu to get the strings table, all tags have a
char pointer for strings.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2021-08-05 09:39:21 -03:00
parent ce9de90364
commit 057be3d993
2 changed files with 2 additions and 3 deletions

View File

@ -190,7 +190,7 @@ static struct class_member *class__find_pair_member(const struct class *structur
struct class_member *member;
if (member_name)
return class__find_member_by_name(structure, cu, member_name);
return class__find_member_by_name(structure, member_name);
int nr_anonymous = ++*nr_anonymousp;

View File

@ -1171,8 +1171,7 @@ size_t class__fprintf(struct class *cls, const struct cu *cu, FILE *fp);
void class__add_vtable_entry(struct class *cls, struct function *vtable_entry);
static inline struct class_member *
class__find_member_by_name(const struct class *cls,
const struct cu *cu, const char *name)
class__find_member_by_name(const struct class *cls, const char *name)
{
return type__find_member_by_name(&cls->type, name);
}