return ident in get_ASM_text
authorMatthias Braun <matze@braunis.de>
Sat, 2 Jun 2007 16:48:19 +0000 (16:48 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 2 Jun 2007 16:48:19 +0000 (16:48 +0000)
[r14269]

include/libfirm/irnode.h
ir/ir/irdumptxt.c
ir/ir/irnode.c

index 4792c54..be838de 100644 (file)
@@ -1151,7 +1151,7 @@ typedef struct {
 } ir_asm_constraint;
 
 /** Return the assembler text of an ASM pseudo node. */
-const char *get_ASM_text(const ir_node *node);
+ident *get_ASM_text(const ir_node *node);
 /** Return the number of input constraints for an ASM node. */
 int get_ASM_n_input_constraints(const ir_node *node);
 /** Return the input constraints for an ASM node. */
index a4797fa..6dd2df6 100644 (file)
@@ -342,7 +342,7 @@ int dump_irnode_to_file(FILE *F, ir_node *n) {
                ident **clobber;
                int l;
 
-               fprintf(F, "  assembler text: %s", get_ASM_text(n));
+               fprintf(F, "  assembler text: %s", get_id_str(get_ASM_text(n)));
                l = get_ASM_n_input_constraints(n);
                if (l > 0) {
                        fprintf(F, "\n  inputs:  ");
index 370923f..4aa14fe 100644 (file)
@@ -2336,9 +2336,9 @@ void set_Pin_op(ir_node *pin, ir_node *node) {
 }
 
 /* Return the assembler text of an ASM pseudo node. */
-const char *get_ASM_text(const ir_node *node) {
+ident *get_ASM_text(const ir_node *node) {
        assert(node->op == op_ASM);
-       return get_id_str(node->attr.assem.asm_text);
+       return node->attr.assem.asm_text;
 }
 
 /* Return the number of input constraints for an ASM node. */