Commit b193f536 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Remove the ugly and write-only variable cur_reg_set.

[r27219]
parent d4840ad0
......@@ -68,9 +68,6 @@
#define DEBUG_MODULE "firm.be.mips.isa"
/* TODO: ugly, but we need it to get access to the registers assigned to Phi nodes */
static set *cur_reg_set = NULL;
/**************************************************
* _ _ _ __
* | | | (_)/ _|
......@@ -254,8 +251,6 @@ static void mips_emit_and_done(void *self)
mips_gen_routine(cg, irg);
cur_reg_set = NULL;
/* de-allocate code generator */
del_set(cg->reg_set);
free(cg);
......@@ -290,8 +285,6 @@ static void *mips_cg_init(be_irg_t *birg)
cg->isa = isa;
cg->birg = birg;
cur_reg_set = cg->reg_set;
isa->cg = cg;
return (arch_code_generator_t *)cg;
......
......@@ -66,9 +66,6 @@
int isleaf;
/* TODO: ugly, but we need it to get access to the registers assigned to Phi nodes */
static set *cur_reg_set = NULL;
/**************************************************
* _ _ _ __
* | | | (_)/ _|
......@@ -427,8 +424,6 @@ static void ppc32_emit_and_done(void *self)
dump_ir_block_graph_sched(irg, "-ppc-finished");
ppc32_gen_routine(cg, irg);
cur_reg_set = NULL;
/* de-allocate code generator */
del_set(cg->reg_set);
free(self);
......@@ -469,8 +464,6 @@ static void *ppc32_cg_init(be_irg_t *birg)
cg->blk_sched = NULL;
FIRM_DBG_REGISTER(cg->mod, "firm.be.ppc.cg");
cur_reg_set = cg->reg_set;
return (arch_code_generator_t *)cg;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment