From a425171fdbc04779892bc79ccbf58196df34061f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20W=C3=BCrdig?= Date: Fri, 24 Feb 2006 13:23:23 +0000 Subject: [PATCH] fixed some bugs --- ir/be/ia32/ia32_new_nodes.c | 9 ++------- ir/be/ia32/ia32_new_nodes.h | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/ir/be/ia32/ia32_new_nodes.c b/ir/be/ia32/ia32_new_nodes.c index a498094af..070d4dee6 100644 --- a/ir/be/ia32/ia32_new_nodes.c +++ b/ir/be/ia32/ia32_new_nodes.c @@ -488,13 +488,8 @@ static void extend_ia32_am_offs(ir_node *node, char *offset, char op) { attr->am_offs = xcalloc(1, sizeof(*(attr->am_offs))); obstack_init(attr->am_offs); } - else { - /* obstack is initialized -> there is already one offset */ - /* present -> connect the offsets with an add */ - obstack_printf(attr->am_offs, " %c ", op); - } - obstack_printf(attr->am_offs, "%s", offset); + obstack_printf(attr->am_offs, "%c%s", op, offset); } /** @@ -568,7 +563,7 @@ void set_ia32_sc(ir_node *node, char *sc) { /** * Gets the string representation of the internal const (tv or symconst) */ -char *get_ia32_cnst(ir_node *node) { +char *get_ia32_cnst(const ir_node *node) { ia32_attr_t *attr = get_ia32_attr(node); return attr->cnst; } diff --git a/ir/be/ia32/ia32_new_nodes.h b/ir/be/ia32/ia32_new_nodes.h index 794815401..96ca3a509 100644 --- a/ir/be/ia32/ia32_new_nodes.h +++ b/ir/be/ia32/ia32_new_nodes.h @@ -110,7 +110,7 @@ void set_ia32_sc(ir_node *node, char *sc); /** * Gets the string representation of the internal const (tv or symconst) */ -char *get_ia32_cnst(ir_node *node); +char *get_ia32_cnst(const ir_node *node); /** * Gets the mode of the stored/loaded value (only set for Store/Load) -- 2.20.1