From e94497fbc0cddc5fdb5447967ee5a0e9634d00b0 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 26 Apr 2018 20:04:15 +0000 Subject: [PATCH] cgraph.h (symbol_table): Just declare debug method here. * cgraph.h (symbol_table): Just declare debug method here. * symtab.c (symbol_table::debug): Define. Co-Authored-By: Jakub Jelinek From-SVN: r259685 --- gcc/ChangeLog | 6 ++++++ gcc/cgraph.h | 5 +---- gcc/symtab.c | 6 ++++++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 431201358a3..617fc36c245 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-04-26 Richard Biener + Jakub Jelinek + + * cgraph.h (symbol_table): Just declare debug method here. + * symtab.c (symbol_table::debug): Define. + 2018-04-26 Eric Botcazou * loop-invariant.c (may_assign_reg_p): Return false for frame pointer. diff --git a/gcc/cgraph.h b/gcc/cgraph.h index d1ef8408497..ee7ebb41c24 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -2222,10 +2222,7 @@ public: void dump (FILE *f); /* Dump symbol table to stderr. */ - inline DEBUG_FUNCTION void debug (void) - { - dump (stderr); - } + void DEBUG_FUNCTION debug (void); /* Return true if assembler names NAME1 and NAME2 leads to the same symbol name. */ diff --git a/gcc/symtab.c b/gcc/symtab.c index b54183fbd49..c1533083573 100644 --- a/gcc/symtab.c +++ b/gcc/symtab.c @@ -947,6 +947,12 @@ symbol_table::dump (FILE *f) node->dump (f); } +DEBUG_FUNCTION void +symbol_table::debug (void) +{ + dump (stderr); +} + /* Return the cgraph node that has ASMNAME for its DECL_ASSEMBLER_NAME. Return NULL if there's no such node. */ -- 2.30.2