Commit 847f1ac0 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Remove the unused attribute const arch_env_t *arch_env from struct phi_handler...

Remove the unused attribute const arch_env_t *arch_env from struct phi_handler and also the then unused parameter be_main_env_t *env from be_phi_handler_new().

[r22758]
parent cabe54a4
......@@ -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;
......
......@@ -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;
}
......
......@@ -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.
......
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