diff --git a/dwarf_loader.c b/dwarf_loader.c index 7a50e8a..ec27a0f 100644 --- a/dwarf_loader.c +++ b/dwarf_loader.c @@ -2479,8 +2479,7 @@ static int cu__finalize(struct cu *cu, struct conf_load *conf) return LSK__KEEPIT; } -static int finalize_cu_immediately(struct cus *cus, struct cu *cu, - struct conf_load *conf) +static int cus__finalize(struct cus *cus, struct cu *cu, struct conf_load *conf) { int lsk = cu__finalize(cu, conf); switch (lsk) { @@ -2676,7 +2675,7 @@ static int dwarf_cus__create_and_process_cu(struct dwarf_cus *dcus, Dwarf_Die *c cu->dfops = &dwarf__ops; if (die__process_and_recode(cu_die, cu, dcus->conf) != 0 || - finalize_cu_immediately(dcus->cus, cu, dcus->conf) == LSK__STOP_LOADING) + cus__finalize(dcus->cus, cu, dcus->conf) == LSK__STOP_LOADING) return DWARF_CB_ABORT; return DWARF_CB_OK; @@ -2859,8 +2858,7 @@ static int cus__merge_and_process_cu(struct cus *cus, struct conf_load *conf, if (cu__resolve_func_ret_types(cu) != LSK__KEEPIT) goto out_abort; - if (finalize_cu_immediately(cus, cu, conf) - == LSK__STOP_LOADING) + if (cus__finalize(cus, cu, conf) == LSK__STOP_LOADING) goto out_abort; return 0;