From 7bbf821b7d72cca7330feed9db2653a2bfaa978f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20W=C3=BCrdig?= Date: Wed, 2 Nov 2005 14:27:38 +0000 Subject: [PATCH] added dump reason to dump additional node information in the info section [r6862] --- ir/ir/irdump.c | 9 ++++++++- ir/ir/irop.h | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ir/ir/irdump.c b/ir/ir/irdump.c index 003f379f1..507e74818 100644 --- a/ir/ir/irdump.c +++ b/ir/ir/irdump.c @@ -1051,10 +1051,17 @@ static void dump_node_vcgattr(FILE *F, ir_node *node, ir_node *local, int bad) * Dump the node information of a node n to a file F. */ static INLINE int dump_node_info(FILE *F, ir_node *n) -{ int bad = 0; +{ + int bad = 0; + const ir_op_ops *ops = get_op_ops(get_irn_op(n)); + fprintf (F, " info1: \""); bad = dump_irnode_to_file(F, n); + /* call the dump_node operation if available */ + if (ops->dump_node) + bad = ops->dump_node(n, F, dump_node_info_txt); fprintf(F, "\"\n"); + return bad; } diff --git a/ir/ir/irop.h b/ir/ir/irop.h index 2395ed30a..861dd32b1 100644 --- a/ir/ir/irop.h +++ b/ir/ir/irop.h @@ -269,7 +269,8 @@ typedef int (*verify_proj_node_func)(ir_node *self, ir_node *proj); typedef enum { dump_node_opcode_txt, /**< dump the opcode */ dump_node_mode_txt, /**< dump the mode */ - dump_node_nodeattr_txt /**< dump the node attributes */ + dump_node_nodeattr_txt, /**< dump node attributes to be shown in the label */ + dump_node_info_txt /**< dump node attributes into info1 */ } dump_reason_t; /** -- 2.20.1