summaryrefslogtreecommitdiffhomepage
path: root/ir/be/mips
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2018-05-09 20:29:50 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2018-05-09 20:29:50 +0200
commitb3791a21b6ee22c0533cc513dec7f2edddf6be8c (patch)
tree76d5e3ccf767a5eca857896efa95a59542ff6c48 /ir/be/mips
parent720d6194c99202777977da756fac97c31b5ad887 (diff)
be: Factor out code to add an output to an asm node.
Diffstat (limited to 'ir/be/mips')
-rw-r--r--ir/be/mips/mips_transform.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ir/be/mips/mips_transform.c b/ir/be/mips/mips_transform.c
index 1d3a22d..b503041 100644
--- a/ir/be/mips/mips_transform.c
+++ b/ir/be/mips/mips_transform.c
@@ -272,10 +272,7 @@ static ir_node *gen_ASM(ir_node *const node)
be_asm_constraint_t parsed_constraint;
parse_asm_constraints(&parsed_constraint, constraint->constraint, true);
- arch_register_req_t const *const req = be_make_register_req(obst, &parsed_constraint, n_out_constraints, info.out_reqs, o);
- ARR_APP1(arch_register_req_t const*, info.out_reqs, req);
-
- be_set_asm_operand(&operands[constraint->pos].op, BE_ASM_OPERAND_OUTPUT_VALUE, o);
+ be_asm_add_out(&info, &operands[constraint->pos].op, obst, &parsed_constraint, n_out_constraints, o);
}
ir_asm_constraint const *const in_constraints = get_ASM_input_constraints(node);