Remove the unused attribute const arch_env_t *arch_env from struct phi_handler and...
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 11 Oct 2008 20:58:42 +0000 (20:58 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 11 Oct 2008 20:58:42 +0000 (20:58 +0000)
[r22758]

ir/be/bemain.c
ir/be/benode.c
ir/be/benode_t.h

index 81f137e..cbca78d 100644 (file)
@@ -406,7 +406,7 @@ static be_main_env_t *be_init_env(be_main_env_t *env, FILE *file_handle)
        memset(asm_constraint_flags, 0, sizeof(asm_constraint_flags));
        env->arch_env = arch_env_init(isa_if, file_handle, env);
 
-       be_phi_handler_new(env);
+       be_phi_handler_new();
 
        be_dbg_open();
        return env;
index 9245f42..2f4c3f0 100644 (file)
@@ -1249,9 +1249,8 @@ typedef struct {
        arch_irn_flags_t       flags;
 } phi_attr_t;
 
-struct {
-       arch_env_t  *arch_env;
-       pmap        *phi_attrs;
+static struct {
+       pmap *phi_attrs;
 } phi_handler;
 
 #define get_phi_handler_from_ops(h)      container_of(h, phi_handler_t, irn_ops)
@@ -1426,9 +1425,8 @@ static const arch_irn_ops_t phi_irn_ops = {
        NULL,    /* perform_memory_operand  */
 };
 
-void be_phi_handler_new(be_main_env_t *env)
+void be_phi_handler_new(void)
 {
-       phi_handler.arch_env  = env->arch_env;
        phi_handler.phi_attrs = pmap_create();
        op_Phi->ops.be_ops    = &phi_irn_ops;
 }
index 023fd98..7dc0e97 100644 (file)
@@ -495,9 +495,8 @@ void be_node_set_req_type(ir_node *irn, int pos, arch_register_req_type_t type);
 
 /**
  * Initialize the Phi handler.
- * @param env The be_main environment.
  */
-void be_phi_handler_new(be_main_env_t *env);
+void be_phi_handler_new(void);
 
 /**
  * Destroy the Phi handler.