From: Michael Beck Date: Mon, 12 Jul 2004 12:27:53 +0000 (+0000) Subject: Fixed function naming X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=660e685d82d6e77db6193373829e4bd2c4557e7b;p=libfirm Fixed function naming [r3406] --- diff --git a/ir/ir/irnode.c b/ir/ir/irnode.c index 5fe1675e6..47a5b4ae0 100644 --- a/ir/ir/irnode.c +++ b/ir/ir/irnode.c @@ -935,14 +935,14 @@ void set_SymConst_entity (ir_node *node, entity *ent) { } -symconst_symbol -get_SymConst_type_or_id (ir_node *node) { +union symconst_symbol +get_SymConst_symbol (ir_node *node) { assert (node->op == op_SymConst); return node->attr.i.sym; } void -set_SymConst_type_or_id (ir_node *node, symconst_symbol sym) { +set_SymConst_symbol (ir_node *node, union symconst_symbol sym) { assert (node->op == op_SymConst); //memcpy (&(node->attr.i.sym), sym, sizeof(type_or_id)); node->attr.i.sym = sym; diff --git a/ir/tr/entity.c b/ir/tr/entity.c index 031f9d48a..1dbde8570 100644 --- a/ir/tr/entity.c +++ b/ir/tr/entity.c @@ -491,7 +491,7 @@ ir_node *copy_const_value(ir_node *n) { nn = new_Const(m, get_Const_tarval(n)); break; case iro_SymConst: - nn = new_SymConst(get_SymConst_type_or_id(n), get_SymConst_kind(n)); + nn = new_SymConst(get_SymConst_symbol(n), get_SymConst_kind(n)); break; case iro_Add: nn = new_Add(copy_const_value(get_Add_left(n)),