get_op_ident() takes now a const parameter
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 28 Dec 2004 12:24:35 +0000 (12:24 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 28 Dec 2004 12:24:35 +0000 (12:24 +0000)
[r4769]

ir/ir/irop.c
ir/ir/irop.h
ir/ir/irop_t.h

index 94b6b70..ac34f4b 100644 (file)
@@ -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);
 }
 
index 6527aa9..251c274 100644 (file)
@@ -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);
index df27ec6..a4b193c 100644 (file)
@@ -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;
 }