summaryrefslogtreecommitdiffhomepage
path: root/ir/ir
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2019-04-05 13:25:16 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2019-04-05 13:25:16 +0200
commit881e05880db5233ddaa25bd0ea0b6e07891927e6 (patch)
tree0beabf6fdbf3997a344a1a74902e94aa518cb717 /ir/ir
parent951745edce191083c8688aa2326cf4ec47f6c0cb (diff)
api: Pass the asm text before the constraints and clobbers to new_*_ASM().
This does better fit the syntax of an inline asm statement and also matches the order in irio.
Diffstat (limited to 'ir/ir')
-rw-r--r--ir/ir/irio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/ir/irio.c b/ir/ir/irio.c
index 08d125d..73ed6e3 100644
--- a/ir/ir/irio.c
+++ b/ir/ir/irio.c
@@ -2001,9 +2001,9 @@ static ir_node *read_ASM(read_env_t *env)
int n_in = read_preds(env);
ir_node **in = (ir_node**)obstack_finish(&env->preds_obst);
- ir_node *newnode = new_r_ASM(block, mem, n_in, in,
+ ir_node *newnode = new_r_ASM(block, mem, n_in, in, asm_text,
ARR_LEN(constraints), constraints,
- ARR_LEN(clobbers), clobbers, asm_text);
+ ARR_LEN(clobbers), clobbers);
set_irn_pinned(newnode, pinned);
obstack_free(&env->preds_obst, in);
DEL_ARR_F(clobbers);