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 <acme@redhat.com>
This commit is contained in:
parent
90599e6177
commit
16d646c07e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue