summaryrefslogtreecommitdiff
path: root/gcc/cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cfg.c')
-rw-r--r--gcc/cfg.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/cfg.c b/gcc/cfg.c
index 9e4380c8e32..0c1e425a00d 100644
--- a/gcc/cfg.c
+++ b/gcc/cfg.c
@@ -504,6 +504,23 @@ dump_edge_info (FILE *file, edge e, int flags, int do_succ)
fputc (')', file);
}
}
+
+DEBUG_FUNCTION void
+debug (edge_def &ref)
+{
+ /* FIXME (crowl): Is this desireable? */
+ dump_edge_info (stderr, &ref, 0, false);
+ dump_edge_info (stderr, &ref, 0, true);
+}
+
+DEBUG_FUNCTION void
+debug (edge_def *ptr)
+{
+ if (ptr)
+ debug (*ptr);
+ else
+ fprintf (stderr, "<nil>\n");
+}
/* Simple routines to easily allocate AUX fields of basic blocks. */