Commit 20f9f8ab authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Sprinkle const on the in array of node constructors with variable arity.

[r28310]
parent 6731dddb
......@@ -231,7 +231,7 @@ FIRM_API op_pin_state is_irn_pinned_in_irg(const ir_node *node);
*/
FIRM_API ir_node *new_ir_node(dbg_info *db, ir_graph *irg, ir_node *block,
ir_op *op, ir_mode *mode,
int arity, ir_node *in[]);
int arity, ir_node *const *in);
/**
* Return the block the node belongs to. This is only
......
......@@ -144,7 +144,7 @@ struct struct_align {
* If arity is negative, a node with a dynamic array is created.
*/
ir_node *new_ir_node(dbg_info *db, ir_graph *irg, ir_node *block, ir_op *op,
ir_mode *mode, int arity, ir_node **in)
ir_mode *mode, int arity, ir_node *const *in)
{
ir_node *res;
unsigned align = offsetof(struct struct_align, s) - 1;
......
......@@ -236,7 +236,7 @@ def preprocess_node(node):
name = "arity",
comment = "size of additional inputs array"))
arguments.append(dict(
type = "ir_node **",
type = "ir_node *const *",
name = "in",
comment = "additional inputs"))
......
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