From: Michael Beck Date: Fri, 10 Dec 2004 16:15:02 +0000 (+0000) Subject: normalize the interface, all fucntions that change the behavior of the dumper X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=15f2e7ae4676437dec5bac48450bbbc43e77cc9e;p=libfirm normalize the interface, all fucntions that change the behavior of the dumper now takes an argument... [r4629] --- diff --git a/ir/ir/irdump.c b/ir/ir/irdump.c index 724bb0a0e..50d19cfd1 100644 --- a/ir/ir/irdump.c +++ b/ir/ir/irdump.c @@ -432,8 +432,8 @@ void dump_consts_local(bool b) { dump_const_local = b; } -void turn_off_constant_entity_values(void) { - const_entities = 0; +void dump_constant_entity_values(bool b) { + const_entities = b; } void dump_keepalive_edges(bool b) { @@ -444,20 +444,16 @@ bool get_opt_dump_keepalive_edges(void) { return dump_keepalive; } -void dump_out_edges(void) { - dump_out_edge_flag = 1; +void dump_out_edges(bool b) { + dump_out_edge_flag = b; } -void dump_dominator_information(void) { - dump_dominator_information_flag = 1; +void dump_dominator_information(bool b) { + dump_dominator_information_flag = b; } -void dump_loop_information(void) { - dump_loop_information_flag = 1; -} - -void dont_dump_loop_information(void) { - dump_loop_information_flag = 0; +void dump_loop_information(bool b) { + dump_loop_information_flag = b; } void dump_backedge_information(bool b) { diff --git a/ir/ir/irdump.h b/ir/ir/irdump.h index 6db941cf0..3412e1200 100644 --- a/ir/ir/irdump.h +++ b/ir/ir/irdump.h @@ -412,7 +412,7 @@ bool get_opt_dump_const_local(void); /** Turns off dumping the values of constant entities. Makes type graphs * better readable. */ -void turn_off_constant_entity_values(void); +void dump_constant_entity_values(bool b); /** Turns on dumping the edges from the End node to nodes to be kept * alive. @@ -425,24 +425,18 @@ bool get_opt_dump_keepalive_edges(void); * * To test the consistency of the out datastructure. */ -void dump_out_edges(void); +void dump_out_edges(bool b); /** If this flag is set the dumper dumps edges to immediate dominator in cfg. */ -void dump_dominator_information(void); +void dump_dominator_information(bool b); /** If this flag is set the dumper dumps loop nodes and edges from * these nodes to the contained ir nodes. * - * Can be turned off with dont_dump_loop_information(). * If the loops are interprocedural nodes can be missing. */ -void dump_loop_information(void); - -/** - * @see dump_loop_information() - */ -void dont_dump_loop_information(void); +void dump_loop_information(bool b); /** If set and backedge info is computed, backedges are dumped dashed * and as vcg 'backedge' construct.