diff options
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r-- | gcc/print-rtl.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index 3793109aa01..f870e0d4889 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -662,6 +662,23 @@ debug_rtx (const_rtx x) fprintf (stderr, "\n"); } +/* Dump rtx REF. */ + +DEBUG_FUNCTION void +debug (const rtx_def &ref) +{ + debug_rtx (&ref); +} + +DEBUG_FUNCTION void +debug (const rtx_def *ptr) +{ + if (ptr) + debug (*ptr); + else + fprintf (stderr, "<nil>\n"); +} + /* Count of rtx's to print with debug_rtx_list. This global exists because gdb user defined commands have no arguments. */ |