From 1fc585e757c14a881909a4576c13cca6f6af9bd8 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 28 Dec 2004 12:24:35 +0000 Subject: [PATCH] get_op_ident() takes now a const parameter [r4769] --- ir/ir/irop.c | 2 +- ir/ir/irop.h | 2 +- ir/ir/irop_t.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ir/ir/irop.c b/ir/ir/irop.c index 94b6b7060..ac34f4b6e 100644 --- a/ir/ir/irop.c +++ b/ir/ir/irop.c @@ -311,7 +311,7 @@ opcode (get_op_code)(const ir_op *op){ return __get_op_code(op); } -ident *(get_op_ident)(ir_op *op){ +ident *(get_op_ident)(const ir_op *op){ return __get_op_ident(op); } diff --git a/ir/ir/irop.h b/ir/ir/irop.h index 6527aa99f..251c274cd 100644 --- a/ir/ir/irop.h +++ b/ir/ir/irop.h @@ -108,7 +108,7 @@ extern ir_op *op_NoMem; ir_op *get_op_NoMem (void); extern ir_op *op_Mux; ir_op *get_op_Mux (void); /** Returns the ident for the opcode name */ -ident *get_op_ident(ir_op *op); +ident *get_op_ident(const ir_op *op); /** Returns the string for the opcode. */ const char *get_op_name(const ir_op *op); diff --git a/ir/ir/irop_t.h b/ir/ir/irop_t.h index df27ec690..a4b193ccd 100644 --- a/ir/ir/irop_t.h +++ b/ir/ir/irop_t.h @@ -181,7 +181,7 @@ static INLINE opcode __get_op_code(const ir_op *op) { return op->code; } -static INLINE ident *__get_op_ident(ir_op *op){ +static INLINE ident *__get_op_ident(const ir_op *op){ return op->name; } -- 2.20.1