aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2018-04-26 20:04:15 +0000
committerJakub Jelinek <jakub@gcc.gnu.org>2018-04-26 22:04:15 +0200
commite94497fbc0cddc5fdb5447967ee5a0e9634d00b0 (patch)
treeb97414a706594af1dcf4a4329e3c9172d1d2d0b8
parent7ee1f872ca6effdc4bb5bdb229ff1f53b89e9385 (diff)
downloadgcc-e94497fbc0cddc5fdb5447967ee5a0e9634d00b0.zip
gcc-e94497fbc0cddc5fdb5447967ee5a0e9634d00b0.tar.gz
gcc-e94497fbc0cddc5fdb5447967ee5a0e9634d00b0.tar.bz2
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 <jakub@redhat.com> From-SVN: r259685
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/cgraph.h5
-rw-r--r--gcc/symtab.c6
3 files changed, 13 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4312013..617fc36 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2018-04-26 Richard Biener <rguenther@suse.de>
+ Jakub Jelinek <jakub@redhat.com>
+
+ * cgraph.h (symbol_table): Just declare debug method here.
+ * symtab.c (symbol_table::debug): Define.
+
2018-04-26 Eric Botcazou <ebotcazou@adacore.com>
* loop-invariant.c (may_assign_reg_p): Return false for frame pointer.
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index d1ef840..ee7ebb4 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 b54183f..c153308 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. */