From: Richard Biener Date: Thu, 26 Apr 2018 20:04:15 +0000 (+0000) Subject: cgraph.h (symbol_table): Just declare debug method here. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e94497fbc0cddc5fdb5447967ee5a0e9634d00b0;p=gcc.git 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 --- 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. */