normalize the interface, all fucntions that change the behavior of the dumper
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 10 Dec 2004 16:15:02 +0000 (16:15 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 10 Dec 2004 16:15:02 +0000 (16:15 +0000)
now takes an argument...

[r4629]

ir/ir/irdump.c
ir/ir/irdump.h

index 724bb0a..50d19cf 100644 (file)
@@ -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) {
index 6db941c..3412e12 100644 (file)
@@ -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.