summaryrefslogtreecommitdiffhomepage
path: root/ir/be/benode.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2015-08-31 21:29:49 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2015-09-08 12:23:08 +0200
commit2fb66e6e1d31c8e88156208077d309eac9020460 (patch)
treeec871170ea1fefcd091c75b97f22c6df0047a8b9 /ir/be/benode.c
parentd0d34f4769d84df84ed859588b2dc73ca116d663 (diff)
be: Pass the input requirements directly to the constructors of nodes, which have a variable number of arguments.
Diffstat (limited to 'ir/be/benode.c')
-rw-r--r--ir/be/benode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/be/benode.c b/ir/be/benode.c
index ab250e9..f7a6da8 100644
--- a/ir/be/benode.c
+++ b/ir/be/benode.c
@@ -466,11 +466,11 @@ void be_set_phi_reg_req(ir_node *node, const arch_register_req_t *req)
}
}
-ir_node *be_new_Asm(dbg_info *const dbgi, ir_node *const block, int const n_ins, ir_node **const ins, int const n_outs, ident *const text, void *const operands)
+ir_node *be_new_Asm(dbg_info *const dbgi, ir_node *const block, int const n_ins, ir_node **const ins, arch_register_req_t const **const in_reqs, int const n_outs, ident *const text, void *const operands)
{
ir_graph *const irg = get_irn_irg(block);
ir_node *const asmn = new_ir_node(dbgi, irg, block, op_be_Asm, mode_T, n_ins, ins);
- be_info_init_irn(asmn, arch_irn_flags_none, NULL, n_outs);
+ be_info_init_irn(asmn, arch_irn_flags_none, in_reqs, n_outs);
be_asm_attr_t *const attr = (be_asm_attr_t*)get_irn_generic_attr(asmn);
attr->text = text;