Remove the unused parameter const arch_env_t *env from arch_set_frame_entity().
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 11 Oct 2008 15:23:22 +0000 (15:23 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 11 Oct 2008 15:23:22 +0000 (15:23 +0000)
[r22679]

ir/be/bearch.c
ir/be/bearch.h
ir/be/bespillslots.c

index 6c17c4e..8807b59 100644 (file)
@@ -102,10 +102,9 @@ ir_entity *arch_get_frame_entity(const ir_node *irn)
        return ops->get_frame_entity(irn);
 }
 
-void arch_set_frame_entity(const arch_env_t *env, ir_node *irn, ir_entity *ent)
+void arch_set_frame_entity(ir_node *irn, ir_entity *ent)
 {
        const arch_irn_ops_t *ops = get_irn_ops(irn);
-       (void)env; // TODO remove parameter
        ops->set_frame_entity(irn, ent);
 }
 
index 50f8d63..e4bbb8e 100644 (file)
@@ -136,7 +136,7 @@ extern const char *arch_irn_flag_str(arch_irn_flags_t flag);
 void arch_set_frame_offset(ir_node *irn, int bias);
 
 ir_entity *arch_get_frame_entity(const ir_node *irn);
-extern void arch_set_frame_entity(const arch_env_t *env, ir_node *irn, ir_entity *ent);
+void       arch_set_frame_entity(ir_node *irn, ir_entity *ent);
 extern int arch_get_sp_bias(const arch_env_t *env, ir_node *irn);
 
 extern int arch_get_op_estimated_cost(const arch_env_t *env, const ir_node *irn);
index bf3a742..9825155 100644 (file)
@@ -555,8 +555,7 @@ static void enlarge_spillslot(spill_slot_t *slot, int otheralign, int othersize)
 }
 
 
-static void assign_spill_entity(const arch_env_t *arch_env, ir_node *node,
-                                ir_entity *entity)
+static void assign_spill_entity(ir_node *node, ir_entity *entity)
 {
        if(is_NoMem(node))
                return;
@@ -568,7 +567,7 @@ static void assign_spill_entity(const arch_env_t *arch_env, ir_node *node,
                        ir_node *in = get_irn_n(node, i);
                        assert(!is_Phi(in));
 
-                       assign_spill_entity(arch_env, in, entity);
+                       assign_spill_entity(in, entity);
                }
                return;
        }
@@ -576,7 +575,7 @@ static void assign_spill_entity(const arch_env_t *arch_env, ir_node *node,
        /* beware: we might have Stores with Memory Proj's, ia32 fisttp for instance */
        node = skip_Proj(node);
        assert(arch_get_frame_entity(node) == NULL);
-       arch_set_frame_entity(arch_env, node, entity);
+       arch_set_frame_entity(node, entity);
 }
 
 /**
@@ -585,7 +584,6 @@ static void assign_spill_entity(const arch_env_t *arch_env, ir_node *node,
  */
 static void assign_spillslots(be_fec_env_t *env)
 {
-       const arch_env_t *arch_env = env->arch_env;
        int i;
        int spillcount;
        spill_t *spill;
@@ -664,7 +662,7 @@ static void assign_spillslots(be_fec_env_t *env)
                                }
                        }
                } else {
-                       assign_spill_entity(arch_env, node, slot->entity);
+                       assign_spill_entity(node, slot->entity);
                }
        }
 
@@ -676,7 +674,7 @@ static void assign_spillslots(be_fec_env_t *env)
 
                assert(slot->entity != NULL);
 
-               arch_set_frame_entity(arch_env, reload, slot->entity);
+               arch_set_frame_entity(reload, slot->entity);
        }
 }