From: Christoph Mallon Date: Thu, 16 Oct 2008 06:55:19 +0000 (+0000) Subject: Remove unused attribute const arch_env_t* arch_env from struct TEMPLATE_code_gen_t... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=7206f6bdfb4ea2c61422568f4342f15b5273e58d;p=libfirm Remove unused attribute const arch_env_t* arch_env from struct TEMPLATE_code_gen_t (no actual backend has it either). [r22935] --- diff --git a/ir/be/TEMPLATE/bearch_TEMPLATE.c b/ir/be/TEMPLATE/bearch_TEMPLATE.c index 8be93d6f3..a2cab4863 100644 --- a/ir/be/TEMPLATE/bearch_TEMPLATE.c +++ b/ir/be/TEMPLATE/bearch_TEMPLATE.c @@ -317,7 +317,6 @@ static void *TEMPLATE_cg_init(be_irg_t *birg) { cg->impl = &TEMPLATE_code_gen_if; cg->irg = be_get_birg_irg(birg); cg->reg_set = new_set(TEMPLATE_cmp_irn_reg_assoc, 1024); - cg->arch_env = arch_env; cg->isa = isa; cg->birg = birg; FIRM_DBG_REGISTER(cg->mod, "firm.be.TEMPLATE.cg"); diff --git a/ir/be/TEMPLATE/bearch_TEMPLATE_t.h b/ir/be/TEMPLATE/bearch_TEMPLATE_t.h index 671976a1c..5c995304e 100644 --- a/ir/be/TEMPLATE/bearch_TEMPLATE_t.h +++ b/ir/be/TEMPLATE/bearch_TEMPLATE_t.h @@ -39,7 +39,6 @@ typedef struct TEMPLATE_transform_env_t TEMPLATE_transform_env_t; struct TEMPLATE_code_gen_t { const arch_code_generator_if_t *impl; /**< implementation */ ir_graph *irg; /**< current irg */ - const arch_env_t *arch_env; /**< the arch env */ set *reg_set; /**< set to memorize registers for FIRM nodes (e.g. phi) */ TEMPLATE_isa_t *isa; /**< the isa instance */ const be_irg_t *birg; /**< The be-irg (contains additional information about the irg) */