X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firop.c;h=31adf0cd5dadaf664af66b27620bf41befc3552e;hb=357886575cb0becb5bd9be376fde49b57edd5385;hp=d4318f0fd7143ce42eb660a48b449bfaa2728bf4;hpb=42deb58bf4970b4f91e23e9b24309b6f3446b42a;p=libfirm diff --git a/ir/ir/irop.c b/ir/ir/irop.c index d4318f0fd..31adf0cd5 100644 --- a/ir/ir/irop.c +++ b/ir/ir/irop.c @@ -166,7 +166,7 @@ ir_op *new_ir_op(unsigned code, const char *name, op_pin_state p, res->tag = 0; if (ops) - memcpy(&res->ops, ops, sizeof(res->ops)); + res->ops = *ops; else /* no given ops, set all operations to NULL */ memset(&res->ops, 0, sizeof(res->ops)); @@ -189,6 +189,14 @@ void free_ir_op(ir_op *code) free(code); } /* free_ir_op */ +void ir_op_set_fragile_indices(ir_op *op, int fragile_mem_index, + int pn_x_regular, int pn_x_except) +{ + op->fragile_mem_index = fragile_mem_index; + op->pn_x_regular = pn_x_regular; + op->pn_x_except = pn_x_except; +} + /* Returns the string for the opcode. */ const char *get_op_name (const ir_op *op) {