dwarf_loader: Remove unused 'cus' argument from finalize_cu()

And follow convention and rename it to cu__finalize() as it operates on
a 'cu' instance.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2021-08-05 16:42:09 -03:00
parent 9ada372a21
commit 2bb04ecf79
1 changed files with 3 additions and 4 deletions

View File

@ -2470,8 +2470,7 @@ static int class_member__cache_byte_size(struct tag *tag, struct cu *cu,
return 0; return 0;
} }
static int finalize_cu(struct cus *cus, struct cu *cu, struct dwarf_cu *dcu, static int cu__finalize(struct cu *cu, struct dwarf_cu *dcu, struct conf_load *conf)
struct conf_load *conf)
{ {
cu__for_all_tags(cu, class_member__cache_byte_size, conf); cu__for_all_tags(cu, class_member__cache_byte_size, conf);
if (conf && conf->steal) { if (conf && conf->steal) {
@ -2484,7 +2483,7 @@ static int finalize_cu_immediately(struct cus *cus, struct cu *cu,
struct dwarf_cu *dcu, struct dwarf_cu *dcu,
struct conf_load *conf) struct conf_load *conf)
{ {
int lsk = finalize_cu(cus, cu, dcu, conf); int lsk = cu__finalize(cu, dcu, conf);
switch (lsk) { switch (lsk) {
case LSK__DELETE: case LSK__DELETE:
cu__delete(cu); cu__delete(cu);
@ -2896,7 +2895,7 @@ static int cus__load_module(struct cus *cus, struct conf_load *conf,
} }
if (type_cu != NULL) { if (type_cu != NULL) {
type_lsk = finalize_cu(cus, type_cu, &type_dcu, conf); type_lsk = cu__finalize(type_cu, &type_dcu, conf);
if (type_lsk == LSK__KEEPIT) { if (type_lsk == LSK__KEEPIT) {
cus__add(cus, type_cu); cus__add(cus, type_cu);
} }