summaryrefslogtreecommitdiffhomepage
path: root/ir/ir
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-10-05 07:58:39 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2016-10-06 07:23:30 +0200
commit3e50084e28b0c277a4a3f33a884a5296929d4348 (patch)
tree51c4ac140de44d4414e4dc032c8bd4b09a534eb2 /ir/ir
parent26806192930ef74dc98209eb4b605caefff55ced (diff)
Use 'default_copy_attr()'.
Diffstat (limited to 'ir/ir')
-rw-r--r--ir/ir/irop.c5
-rw-r--r--ir/ir/irop_t.h2
2 files changed, 3 insertions, 4 deletions
diff --git a/ir/ir/irop.c b/ir/ir/irop.c
index e54f059..3801dc2 100644
--- a/ir/ir/irop.c
+++ b/ir/ir/irop.c
@@ -32,8 +32,6 @@ static unsigned next_iro = iro_last+1;
static ir_type *default_get_type_attr(const ir_node *node);
static ir_entity *default_get_entity_attr(const ir_node *node);
static unsigned default_hash_node(const ir_node *node);
-static void default_copy_attr(ir_graph *irg, const ir_node *old_node,
- ir_node *new_node);
int attrs_equal_false(const ir_node *a, const ir_node *b)
{
@@ -439,8 +437,7 @@ static int attrs_equal_ASM(const ir_node *a, const ir_node *b)
return except_attrs_equal(&attr_a->exc, &attr_b->exc);
}
-static void default_copy_attr(ir_graph *irg, const ir_node *old_node,
- ir_node *new_node)
+void default_copy_attr(ir_graph *irg, ir_node const *old_node, ir_node *new_node)
{
(void)irg;
assert(get_irn_op(old_node) == get_irn_op(new_node));
diff --git a/ir/ir/irop_t.h b/ir/ir/irop_t.h
index e40ad3f..549c0ba 100644
--- a/ir/ir/irop_t.h
+++ b/ir/ir/irop_t.h
@@ -192,4 +192,6 @@ static inline void *get_op_attr_(const ir_op *op)
/** An attr_equals function that always returns 0/false */
int attrs_equal_false(const ir_node *a, const ir_node *b);
+void default_copy_attr(ir_graph *irg, ir_node const *old_node, ir_node *new_node);
+
#endif