From patchwork Mon May 23 08:33:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: external declaration of dominance debug functions From: Pierre Vittet X-Patchwork-Id: 96838 Message-Id: <20110523103355.71528d09@zenwalk.local> To: gcc-patches@gcc.gnu.org Date: Mon, 23 May 2011 10:33:55 +0200 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 * 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. */