summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beinfo.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2010-10-06 10:40:34 +0200
committerMatthias Braun <matze@braunis.de>2010-10-06 10:40:34 +0200
commit6730cf921d356d992d35526daf57f82af7ab0816 (patch)
tree1a1a5eac7c81b210a2d90c32a88462e97502127c /ir/be/beinfo.c
parente5eb3be009a71eeb9134077fe0cf9b9ccfe97a90 (diff)
forbid calls of new_XXX and new_d_XXX when not in phase_building (only new_r_XXX allowed)
[r28037]
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 f4a88c7..b6ca707 100644
--- a/ir/be/beinfo.c
+++ b/ir/be/beinfo.c
@@ -64,7 +64,7 @@ void be_info_new_node(ir_node *node)
}
}
-static void new_Phi_copy_attr(ir_graph *irg, const ir_node *old_node,
+static void new_phi_copy_attr(ir_graph *irg, const ir_node *old_node,
ir_node *new_node)
{
backend_info_t *old_info = be_get_info(old_node);
@@ -119,7 +119,7 @@ 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;
+ op_Phi->ops.copy_attr = new_phi_copy_attr;
initialized = true;
/* phis have register and register requirements now which we want to dump */
@@ -159,7 +159,7 @@ void be_info_free(void)
if (!initialized)
panic("be_info_free called without prior init");
- assert(op_Phi->ops.copy_attr == new_Phi_copy_attr);
+ assert(op_Phi->ops.copy_attr == new_phi_copy_attr);
op_Phi->ops.copy_attr = old_phi_copy_attr;
initialized = false;