Commit 3c2db04e authored by Christoph Mallon's avatar Christoph Mallon
Browse files

be: Remove the thin wrapper macro arch_register_class_mode().

parent 553f4e1a
......@@ -239,9 +239,6 @@ struct arch_register_class_t {
/** return the number of registers in this register class */
#define arch_register_class_n_regs(cls) ((cls)->n_regs)
/** return the largest mode of this register class */
#define arch_register_class_mode(cls) ((cls)->mode)
/** return the name of this register class */
#define arch_register_class_name(cls) ((cls)->name)
......
......@@ -527,12 +527,10 @@ static unsigned get_start_reg_index(ir_graph *irg, const arch_register_t *reg)
ir_node *be_get_initial_reg_value(ir_graph *irg, const arch_register_t *reg)
{
unsigned i = get_start_reg_index(irg, reg);
ir_node *start = get_irg_start(irg);
ir_mode *mode = arch_register_class_mode(reg->cls);
ir_node *const proj = get_Proj_for_pn(start, i);
return proj ? proj : new_r_Proj(start, mode, i);
unsigned const i = get_start_reg_index(irg, reg);
ir_node *const start = get_irg_start(irg);
ir_node *const proj = get_Proj_for_pn(start, i);
return proj ? proj : new_r_Proj(start, reg->cls->mode, i);
}
static ir_entity* dummy_get_frame_entity(const ir_node *node)
......
......@@ -1325,7 +1325,7 @@ static void add_missing_keep_walker(ir_node *node, void *data)
value = existing_projs[i];
if (value == NULL)
value = new_r_Proj(node, arch_register_class_mode(cls), i);
value = new_r_Proj(node, cls->mode, i);
last_keep = add_to_keep(last_keep, cls, value);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment