irop: Constify get_op_ops().
authorChristoph Mallon <christoph.mallon@gmx.de>
Tue, 18 Dec 2012 09:09:30 +0000 (10:09 +0100)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 18 Dec 2012 09:09:30 +0000 (10:09 +0100)
include/libfirm/irop.h
ir/ir/irop.c
ir/ir/irop_t.h

index c490c81..891ca53 100644 (file)
@@ -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);
 
 /** @} */
 
index 09a5886..423ef45 100644 (file)
@@ -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);
 }
index 13ccc5d..040b0e5 100644 (file)
@@ -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;
 }