From 16d646c07e98d66c43718deea8937f7490fb569e Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Thu, 5 Aug 2021 16:42:09 -0300 Subject: [PATCH] dwarf_loader: Rename finalize_cu_immediately() to cus__finalize() to follow convention Follow convention by renaming it to cu__finalize() as it operates on a 'cus' instance. Signed-off-by: Arnaldo Carvalho de Melo --- dwarf_loader.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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;