From dc114f22135f1060018fbf0ffd1b6e863a635092 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 18 Nov 2004 17:14:02 +0000 Subject: [PATCH 1/1] Added hook function to intercept node attributes output [r4434] --- ir/ir/irdump.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ir/ir/irdump.h b/ir/ir/irdump.h index c9a7d6054..ae4bbe0d9 100644 --- a/ir/ir/irdump.h +++ b/ir/ir/irdump.h @@ -42,6 +42,16 @@ /* GRAPH DUMPERS */ /* **************************************************************************** */ +/** + * This hook is called to dump the vcg attributes of a node to a file. + * If this function returns zero, the default attributes are added, else + * removed. + */ +typedef int (*DUMP_NODE_VCGATTR_FUNC)(FILE *F, ir_node *n); + +/** Set the node_vcgattr hook. */ +void set_dump_node_vcgattr_hook(DUMP_NODE_VCGATTR_FUNC hook); + /** Dump a firm graph. * * @param irg The firm graph to be dumped. -- 2.20.1