summaryrefslogtreecommitdiffhomepage
path: root/ir/be/TEMPLATE
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-12-05 07:33:58 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2016-12-05 09:03:36 +0100
commit64fed6dd0b7f894a8a83c8506895c1fa30552174 (patch)
treea93e7d1bcb31f0d04b5690920bf941c3ccd2c5eb /ir/be/TEMPLATE
parentfd31f273ab28fe069820994fd77f8330d9413b4e (diff)
be: Simply use '&${ARCH}_class_reg_req_${CLASS}' instead of '${ARCH}_reg_classes[CLASS_${ARCH}_${CLASS}].class_req'.
Diffstat (limited to 'ir/be/TEMPLATE')
-rw-r--r--ir/be/TEMPLATE/TEMPLATE_transform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/TEMPLATE/TEMPLATE_transform.c b/ir/be/TEMPLATE/TEMPLATE_transform.c
index a1dd240..6a1aa87 100644
--- a/ir/be/TEMPLATE/TEMPLATE_transform.c
+++ b/ir/be/TEMPLATE/TEMPLATE_transform.c
@@ -264,7 +264,7 @@ static ir_node *gen_Phi(ir_node *node)
ir_mode *mode = get_irn_mode(node);
const arch_register_req_t *req;
if (be_mode_needs_gp_reg(mode)) {
- req = TEMPLATE_reg_classes[CLASS_TEMPLATE_gp].class_req;
+ req = &TEMPLATE_class_reg_req_gp;
} else {
req = arch_memory_req;
}