Commit 94669b0b authored by Christian Würdig's avatar Christian Würdig
Browse files

changed irn param to const in get_... functions

parent 23b71aba
......@@ -613,7 +613,7 @@ void be_set_IncSP_offset(ir_node *irn, unsigned offset)
a->offset = offset;
}
unsigned be_get_IncSP_offset(ir_node *irn)
unsigned be_get_IncSP_offset(const ir_node *irn)
{
be_stack_attr_t *a = get_irn_attr(irn);
assert(be_is_IncSP(irn));
......@@ -627,7 +627,7 @@ void be_set_IncSP_direction(ir_node *irn, be_stack_dir_t dir)
a->dir = dir;
}
be_stack_dir_t be_get_IncSP_direction(ir_node *irn)
be_stack_dir_t be_get_IncSP_direction(const ir_node *irn)
{
be_stack_attr_t *a = get_irn_attr(irn);
assert(be_is_IncSP(irn));
......
......@@ -97,10 +97,10 @@ ir_node *be_new_SetSP(const arch_register_t *sp, ir_graph *irg, ir_node *bl, ir_
ir_node *be_new_IncSP(const arch_register_t *sp, ir_graph *irg, ir_node *bl, ir_node *old_sp, ir_node *mem, unsigned amount, be_stack_dir_t dir);
void be_set_IncSP_offset(ir_node *irn, unsigned offset);
unsigned be_get_IncSP_offset(ir_node *irn);
unsigned be_get_IncSP_offset(const ir_node *irn);
void be_set_IncSP_direction(ir_node *irn, be_stack_dir_t dir);
be_stack_dir_t be_get_IncSP_direction(ir_node *irn);
be_stack_dir_t be_get_IncSP_direction(const ir_node *irn);
ir_node *be_new_Call(ir_graph *irg, ir_node *bl, ir_node *mem, ir_node *sp, ir_node *ptr, int n_outs, int n, ir_node *in[]);
ir_node *be_new_Return(ir_graph *irg, ir_node *bl, int n, ir_node *in[]);
......
Supports Markdown
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