Remove the ugly and write-only variable cur_reg_set.
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 25 Feb 2010 12:44:16 +0000 (12:44 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 25 Feb 2010 12:44:16 +0000 (12:44 +0000)
[r27219]

ir/be/mips/bearch_mips.c
ir/be/ppc32/bearch_ppc32.c

index 1d695b8..bc6b8ea 100644 (file)
@@ -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;
index 91c430c..b6f9c69 100644 (file)
@@ -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;
 }