Hello,
Here is a two lines patch, allowing to use debug_dominance_info and
debug_dominance_tree functions outside of gcc/dominance.c. For the
moment, those functions are not declared in any gcc/*.h files (as far as
I know after trying a grep). I have added them as external functions
into gcc/basic-block.h. I feel this is useful to be able to call those
functions from others files, for exemple from plugins.
ChangeLog:
2011-05-23 Pierre Vittet <pier...@pvittet.com>
* basic-block.h (debug_dominance_info, debug_dominance_tree):
Add declaration.
Index: gcc/basic-block.h
===================================================================
--- gcc/basic-block.h (revision 174056)
+++ gcc/basic-block.h (working copy)
@@ -882,6 +882,9 @@ extern basic_block get_bb_copy (basic_block);
void set_loop_copy (struct loop *, struct loop *);
struct loop *get_loop_copy (struct loop *);
+extern void debug_dominance_info (enum cdi_direction dir);
+extern void debug_dominance_tree (enum cdi_direction dir, basic_block root);
+
#include "cfghooks.h"
/* Return true when one of the predecessor edges of BB is marked with EDGE_EH. */