From b987bd4b7217d31686a6e3546aa8ded3c521ebd4 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 9 May 2007 14:53:11 +0000 Subject: [PATCH] made more arguments const [r13733] --- ir/ir/irnode.c | 8 ++++---- ir/ir/irnode.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ir/ir/irnode.c b/ir/ir/irnode.c index 07e64cc63..1ce7634c7 100644 --- a/ir/ir/irnode.c +++ b/ir/ir/irnode.c @@ -1098,7 +1098,7 @@ set_SymConst_type(ir_node *node, ir_type *tp) { } ident * -get_SymConst_name(ir_node *node) { +get_SymConst_name(const ir_node *node) { assert(node->op == op_SymConst && SYMCONST_HAS_ID(get_SymConst_kind(node))); return node->attr.symc.sym.ident_p; } @@ -1111,7 +1111,7 @@ set_SymConst_name(ir_node *node, ident *name) { /* Only to access SymConst of kind symconst_addr_ent. Else assertion: */ -ir_entity *get_SymConst_entity(ir_node *node) { +ir_entity *get_SymConst_entity(const ir_node *node) { assert(node->op == op_SymConst && SYMCONST_HAS_ENT(get_SymConst_kind(node))); return node->attr.symc.sym.entity_p; } @@ -1121,7 +1121,7 @@ void set_SymConst_entity(ir_node *node, ir_entity *ent) { node->attr.symc.sym.entity_p = ent; } -ir_enum_const *get_SymConst_enum(ir_node *node) { +ir_enum_const *get_SymConst_enum(const ir_node *node) { assert(node->op == op_SymConst && SYMCONST_HAS_ENUM(get_SymConst_kind(node))); return node->attr.symc.sym.enum_p; } @@ -1132,7 +1132,7 @@ void set_SymConst_enum(ir_node *node, ir_enum_const *ec) { } union symconst_symbol -get_SymConst_symbol(ir_node *node) { +get_SymConst_symbol(const ir_node *node) { assert(node->op == op_SymConst); return node->attr.symc.sym; } diff --git a/ir/ir/irnode.h b/ir/ir/irnode.h index 147d27739..ce5269203 100644 --- a/ir/ir/irnode.h +++ b/ir/ir/irnode.h @@ -554,21 +554,21 @@ ir_type *get_SymConst_type(ir_node *node); void set_SymConst_type(ir_node *node, ir_type *tp); /** Only to access SymConst of kind addr_name. Else assertion: */ -ident *get_SymConst_name(ir_node *node); +ident *get_SymConst_name(const ir_node *node); void set_SymConst_name(ir_node *node, ident *name); /** Only to access SymConst of kind addr_ent. Else assertion: */ -ir_entity *get_SymConst_entity(ir_node *node); +ir_entity *get_SymConst_entity(const ir_node *node); void set_SymConst_entity(ir_node *node, ir_entity *ent); /** Only to access SymConst of kind symconst_enum_const. Else assertion: */ -ir_enum_const *get_SymConst_enum(ir_node *node); +ir_enum_const *get_SymConst_enum(const ir_node *node); void set_SymConst_enum(ir_node *node, ir_enum_const *ec); /** Sets both: type and ptrinfo. Needed to treat the node independent of its semantics. Does a memcpy for the memory sym points to. */ /* write 'union': firmjni then does not create a method... */ -union symconst_symbol get_SymConst_symbol(ir_node *node); +union symconst_symbol get_SymConst_symbol(const ir_node *node); void set_SymConst_symbol(ir_node *node, union symconst_symbol sym); -- 2.20.1