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:
parent
ce9de90364
commit
057be3d993
2
codiff.c
2
codiff.c
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue