aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2017-05-23 16:28:35 +0200
committerMartin Liska <marxin@gcc.gnu.org>2017-05-23 14:28:35 +0000
commit6c52831d98b00d02a3c11b46fbf80991ef0dc0fa (patch)
treeace1eea3c695f1c68c60b7dfba0d5ba8292ddef7 /gcc/cgraph.h
parent3494e738cf975b8220002a25c9de4d616a60ac46 (diff)
downloadgcc-6c52831d98b00d02a3c11b46fbf80991ef0dc0fa.zip
gcc-6c52831d98b00d02a3c11b46fbf80991ef0dc0fa.tar.gz
gcc-6c52831d98b00d02a3c11b46fbf80991ef0dc0fa.tar.bz2
Move symtab_node::dump_table to symbol_table::dump
2017-05-23 Martin Liska <mliska@suse.cz> * cgraph.h: Move symtab_node::dump_table to symbol_table::dump and symtab_node::debug_symtab to symbol_table::debug. * cgraphunit.c (analyze_functions): Use the renamed function. (symbol_table::compile): Likewise. * ipa-cp.c (ipcp_verify_propagated_values): Likewise. * ipa-icf.c (sem_item_optimizer::execute): Likewise. * passes.c (execute_todo): Likewise. * symtab.c (symbol_table::dump): New function. * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function. 2017-05-23 Martin Liska <mliska@suse.cz> * lto.c (read_cgraph_and_symbols): Use the renamed function. (do_whole_program_analysis): Use the renamed function. From-SVN: r248368
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index f27e241..e07a7dd 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -411,12 +411,6 @@ public:
Return NULL if there's no such node. */
static symtab_node *get_for_asmname (const_tree asmname);
- /* Dump symbol table to F. */
- static void dump_table (FILE *);
-
- /* Dump symbol table to stderr. */
- static void DEBUG_FUNCTION debug_symtab (void);
-
/* Verify symbol table for internal consistency. */
static DEBUG_FUNCTION void verify_symtab_nodes (void);
@@ -2178,6 +2172,15 @@ public:
/* Set the DECL_ASSEMBLER_NAME and update symtab hashtables. */
void change_decl_assembler_name (tree decl, tree name);
+ /* Dump symbol table to F. */
+ void dump (FILE *f);
+
+ /* Dump symbol table to stderr. */
+ inline DEBUG_FUNCTION void debug (void)
+ {
+ dump (stderr);
+ }
+
/* Return true if assembler names NAME1 and NAME2 leads to the same symbol
name. */
static bool assembler_names_equal_p (const char *name1, const char *name2);