Remove the unused parameter const arch_env_t *arch_env from x87_simulate_graph().
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 11 Oct 2008 19:08:53 +0000 (19:08 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 11 Oct 2008 19:08:53 +0000 (19:08 +0000)
[r22713]

ir/be/ia32/bearch_ia32.c
ir/be/ia32/ia32_x87.c
ir/be/ia32/ia32_x87.h

index 1660906..00b8fc0 100644 (file)
@@ -1519,7 +1519,7 @@ static void ia32_finish(void *self) {
 
        /* we might have to rewrite x87 virtual registers */
        if (cg->do_x87_sim) {
-               x87_simulate_graph(cg->arch_env, cg->birg);
+               x87_simulate_graph(cg->birg);
        }
 
        /* do peephole optimisations */
index ba381cf..b4f93aa 100644 (file)
@@ -2432,21 +2432,12 @@ static void update_liveness_walker(ir_node *block, void *data)
        update_liveness(sim, block);
 }  /* update_liveness_walker */
 
-/**
- * Run a simulation and fix all virtual instructions for a graph.
- *
- * @param env       the architecture environment
- * @param irg       the current graph
- *
- * Needs a block-schedule.
- */
-void x87_simulate_graph(const arch_env_t *arch_env, be_irg_t *birg)
+void x87_simulate_graph(be_irg_t *birg)
 {
        ir_node       *block, *start_block;
        blk_state     *bl_state;
        x87_simulator sim;
        ir_graph      *irg = be_get_birg_irg(birg);
-       (void)arch_env;
 
        /* create the simulator */
        x87_init_simulator(&sim, irg);
index c9da0db..44aeeb2 100644 (file)
  * Replaces all virtual floating point instructions and registers
  * by real ones.
  *
- * @param env       architecture environment
  * @param birg      the graph to simulate and patch
  *
- * Registers must be allocated.                Needs a block-schedule.
+ * Registers must be allocated.
  */
-void x87_simulate_graph(const arch_env_t *env, be_irg_t *birg);
+void x87_simulate_graph(be_irg_t *birg);
 
 #endif /* FIRM_BE_IA32_IA32_X87_H */