Commit a158f864 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

irop: Constify get_op_ops().

parent da0e1daf
......@@ -295,7 +295,7 @@ FIRM_API void ir_op_set_fragile_indices(ir_op *op, int pn_x_regular,
int pn_x_except);
/** Returns the ir_op_ops of an ir_op. */
FIRM_API ir_op_ops *get_op_ops(ir_op *op);
FIRM_API ir_op_ops const *get_op_ops(ir_op const *op);
/** @} */
......
......@@ -181,7 +181,7 @@ void (set_generic_function_ptr)(ir_op *op, op_func func)
set_generic_function_ptr_(op, func);
}
ir_op_ops *(get_op_ops)(ir_op *op)
ir_op_ops const *(get_op_ops)(ir_op const *const op)
{
return get_op_ops_(op);
}
......
......@@ -142,7 +142,7 @@ static inline op_func get_generic_function_ptr_(const ir_op *op)
return op->ops.generic;
}
static inline ir_op_ops *get_op_ops_(ir_op *op)
static inline ir_op_ops const *get_op_ops_(ir_op const *const op)
{
return &op->ops;
}
......
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