From 152a8f1c6542fa3f0d83058efe1e8767f0dd0319 Mon Sep 17 00:00:00 2001 From: Sebastian Hack Date: Fri, 30 Sep 2005 13:51:06 +0000 Subject: [PATCH] Minor changes --- ir/be/bespill.c | 8 +++++--- ir/be/bespill.h | 9 ++++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/ir/be/bespill.c b/ir/be/bespill.c index 430ff69e6..079a3be51 100644 --- a/ir/be/bespill.c +++ b/ir/be/bespill.c @@ -54,7 +54,9 @@ static int cmp_spillinfo(const void *x, const void *y, size_t size) { return ! (xx->spilled_node == yy->spilled_node); } -spill_env_t *be_new_spill_env(const be_main_session_env_t *session, +spill_env_t *be_new_spill_env( + firm_dbg_module_t *dbg, + const be_main_session_env_t *session, const arch_register_class_t *cls) { spill_env_t *env = malloc(sizeof(env[0])); @@ -62,7 +64,7 @@ spill_env_t *be_new_spill_env(const be_main_session_env_t *session, env->spills = new_set(cmp_spillinfo, 1024); env->session = session; env->cls = cls; - env->dbg = firm_dbg_register("be.ra.spill_env"); + env->dbg = dbg; obstack_init(&env->obst); return env; } @@ -152,7 +154,7 @@ ir_node *be_spill_node(spill_env_t *senv, ir_node *to_spill, pset *mem_phis) { return res; } -void insert_spills_reloads(spill_env_t *senv, pset *mem_phis, pset *reload_set) +void be_insert_spills_reloads(spill_env_t *senv, pset *mem_phis, pset *reload_set) { ir_graph *irg = senv->session->irg; ir_node *irn; diff --git a/ir/be/bespill.h b/ir/be/bespill.h index 354ba57ac..d29dfe32b 100644 --- a/ir/be/bespill.h +++ b/ir/be/bespill.h @@ -10,15 +10,18 @@ #include "set.h" #include "pset.h" +#include "irnode.h" +#include "debug.h" #include "be_t.h" -#include "irnode.h" #include "bearch.h" typedef struct _spill_env_t spill_env_t; -spill_env_t *be_new_spill_env(const be_main_session_env_t *session, +spill_env_t *be_new_spill_env( + firm_dbg_module_t *dbg, + const be_main_session_env_t *session, const arch_register_class_t *cls); void be_delete_spill_env(spill_env_t *senv); @@ -27,6 +30,6 @@ void be_add_spill(spill_env_t *senv, ir_node *to_spill, ir_node *before); void be_add_spill_on_edge(spill_env_t *senv, ir_node *to_spill, ir_node *bl, int pos); -void insert_spills_reloads(spill_env_t *senv, pset *mem_phis, pset *reload_set); +void be_insert_spills_reloads(spill_env_t *senv, pset *mem_phis, pset *reload_set); #endif /*BESPILL_H_*/ -- 2.20.1