summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beinfo.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-11-16 07:21:37 +0100
committerMatthias Braun <matze@braunis.de>2014-11-16 07:34:08 +0100
commit1beb0be5138636e2f3c9770044b00fb214de19a5 (patch)
treed7adaaa3873f270fe32b08c9743a347b537d6da5 /ir/be/beinfo.c
parent0ef534e607fc1c66a1f2357104912f0707f7bdfd (diff)
Avoid direct op->ops accesses
Diffstat (limited to 'ir/be/beinfo.c')
-rw-r--r--ir/be/beinfo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ir/be/beinfo.c b/ir/be/beinfo.c
index 6a84b91..471b8bc 100644
--- a/ir/be/beinfo.c
+++ b/ir/be/beinfo.c
@@ -138,12 +138,12 @@ void be_info_init(void)
panic("double initialization of be_info");
old_phi_copy_attr = op_Phi->ops.copy_attr;
- op_Phi->ops.copy_attr = new_phi_copy_attr;
+ set_op_copy_attr(op_Phi, new_phi_copy_attr);
initialized = true;
/* phis have register and register requirements now which we want to dump */
assert(op_Phi->ops.dump_node == NULL);
- op_Phi->ops.dump_node = be_dump_phi_reg_reqs;
+ set_op_dump(op_Phi, be_dump_phi_reg_reqs);
hook_liveness_info.hook._hook_node_info = dump_liveness_info_hook;
register_hook(hook_node_info, &hook_liveness_info);
@@ -189,7 +189,7 @@ void be_info_free(void)
initialized = false;
assert(op_Phi->ops.dump_node == be_dump_phi_reg_reqs);
- op_Phi->ops.dump_node = NULL;
+ set_op_dump(op_Phi, NULL);
unregister_hook(hook_node_info, &hook_liveness_info);
}