Commit b987bd4b authored by Michael Beck's avatar Michael Beck
Browse files

made more arguments const

[r13733]
parent 21dd7e02
......@@ -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;
}
......
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment