From a158f864beaee2de7ba4e0610a3a9960a0be5ed4 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Tue, 18 Dec 2012 10:09:30 +0100 Subject: [PATCH] irop: Constify get_op_ops(). --- include/libfirm/irop.h | 2 +- ir/ir/irop.c | 2 +- ir/ir/irop_t.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/libfirm/irop.h b/include/libfirm/irop.h index c490c8195..891ca5341 100644 --- a/include/libfirm/irop.h +++ b/include/libfirm/irop.h @@ -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); /** @} */ diff --git a/ir/ir/irop.c b/ir/ir/irop.c index 09a5886fa..423ef4570 100644 --- a/ir/ir/irop.c +++ b/ir/ir/irop.c @@ -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); } diff --git a/ir/ir/irop_t.h b/ir/ir/irop_t.h index 13ccc5d27..040b0e568 100644 --- a/ir/ir/irop_t.h +++ b/ir/ir/irop_t.h @@ -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; } -- 2.20.1