From a2af86433a956e18f0c44983e9caa9df562661fd Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=B6tz=20Lindenmaier?= Date: Tue, 21 Jun 2005 18:13:02 +0000 Subject: [PATCH] fixed file dump filter stuff [r6086] --- ir/ir/irdump.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ir/ir/irdump.c b/ir/ir/irdump.c index 5fde09b90..8714cdb8a 100644 --- a/ir/ir/irdump.c +++ b/ir/ir/irdump.c @@ -240,12 +240,19 @@ static INLINE void dump_loop_nodes_into_graph(FILE *F, ir_graph *irg); */ static pmap *irdump_link_map = NULL; -/** Creates the link attribut map. */ +/** NOT A STANDARD LIBFIRM INIT METHOD + * + * We do not want to integrate dumping into libfirm, i.e., if the dumpers + * are off, we want to have as few interferences as possible. Therefore the + * initialization is perfomed lazily and not called from within init_firm. + * + * Creates the link attribut map. */ static void init_irdump(void) { /* We need a new, empty map. */ if (irdump_link_map) pmap_destroy(irdump_link_map); irdump_link_map = pmap_create(); - dump_file_filter_id = new_id_from_str(""); + if (!dump_file_filter_id) + dump_file_filter_id = new_id_from_str(""); } /** * Returns the private link field. -- 2.20.1