summaryrefslogtreecommitdiffhomepage
path: root/ir/be/becopyilp2.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2018-03-02 08:52:51 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2018-03-03 08:47:46 +0100
commit75d1c706daa017c2a04e84aae3ba73e360ca0a2e (patch)
treecc52a9d75fbf1c5069632082a2cfac998ddf42ed /ir/be/becopyilp2.c
parent1e04ef5c3622c6ae8d205398fe42bf3a08520d9e (diff)
be: Generalize set_irn_col() to arch_set_irn_register_idx() and use it elsewhere, too.
There is no need to pass the register class as parameter, because the node knows the register class.
Diffstat (limited to 'ir/be/becopyilp2.c')
-rw-r--r--ir/be/becopyilp2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/becopyilp2.c b/ir/be/becopyilp2.c
index 3e4f772..9c8889d 100644
--- a/ir/be/becopyilp2.c
+++ b/ir/be/becopyilp2.c
@@ -531,7 +531,7 @@ static void ilp2_apply(ilp_env_t *const ienv)
unsigned color;
if (sscanf(var_name, "x_%u_%u", &nodenr, &color) == 2) {
ir_node *const irn = get_idx_irn(irg, nodenr);
- set_irn_col(ienv->co->cls, irn, color);
+ arch_set_irn_register_idx(irn, color);
} else {
panic("this should be an x-var");
}