summaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 8cf3b767f9f..04e1bd3e222 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -5351,6 +5351,22 @@ debug_dwarf_die (dw_die_ref die)
print_die (die, stderr);
}
+DEBUG_FUNCTION void
+debug (die_struct &ref)
+{
+ print_die (&ref, stderr);
+}
+
+DEBUG_FUNCTION void
+debug (die_struct *ptr)
+{
+ if (ptr)
+ debug (*ptr);
+ else
+ fprintf (stderr, "<nil>\n");
+}
+
+
/* Print all DWARF information collected for the compilation unit.
This routine is a debugging aid only. */