summaryrefslogtreecommitdiffhomepage
path: root/ir/be/benode.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-03-01 13:52:43 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2016-03-01 14:06:38 +0100
commitab4368f47866e20f840eeaaf607ec55698b158ec (patch)
treef5f1f9b8ccf0ca1eec82e61e5a35ca7487f60384 /ir/be/benode.c
parent1a7bc837c51d5de024787be0f0fe8823d8a565c5 (diff)
be: Allow creation of Copy nodes with debug info.
Diffstat (limited to 'ir/be/benode.c')
-rw-r--r--ir/be/benode.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/ir/be/benode.c b/ir/be/benode.c
index 0522297..2118550 100644
--- a/ir/be/benode.c
+++ b/ir/be/benode.c
@@ -211,16 +211,20 @@ static void set_copy_info(ir_node *const irn, ir_graph *const irg, ir_node *cons
arch_set_irn_register_req_out(irn, 0, out_req);
}
-ir_node *be_new_Copy(ir_node *bl, ir_node *op)
+ir_node *be_new_d_Copy(dbg_info *const dbgi, ir_node *const block, ir_node *const op)
{
- ir_graph *irg = get_irn_irg(bl);
- ir_node *in[] = { op };
- ir_node *res = new_ir_node(NULL, irg, bl, op_be_Copy, get_irn_mode(op),
- ARRAY_SIZE(in), in);
+ ir_graph *const irg = get_irn_irg(block);
+ ir_node *const in[] = { op };
+ ir_node *const res = new_ir_node(dbgi, irg, block, op_be_Copy, get_irn_mode(op), ARRAY_SIZE(in), in);
set_copy_info(res, irg, op, arch_irn_flags_none);
return res;
}
+ir_node *be_new_Copy(ir_node *const bl, ir_node *const op)
+{
+ return be_new_d_Copy(NULL, bl, op);
+}
+
ir_node *be_get_Copy_op(const ir_node *cpy)
{
return get_irn_n(cpy, n_be_Copy_op);