diff options
author | Trevor Saunders <tsaunders@mozilla.com> | 2013-11-18 12:18:12 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2013-11-18 12:18:12 +0000 |
commit | fec39fa6b010bb0a37c93412e8f147668c558f98 (patch) | |
tree | a5a2310e101e4acec88120d4acdb8a49b8cf9bb3 /gcc/cgraph.h | |
parent | 1f66e10e20b9b281a77ff85b2db40574524054ac (diff) | |
download | gcc-fec39fa6b010bb0a37c93412e8f147668c558f98.zip gcc-fec39fa6b010bb0a37c93412e8f147668c558f98.tar.gz gcc-fec39fa6b010bb0a37c93412e8f147668c558f98.tar.bz2 |
remove nolonger needed {cgraph,varpool}_node_{,asm_}name () functions
From-SVN: r204946
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 36 |
1 files changed, 6 insertions, 30 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index 1ac6dfb..db36f5e 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -44,6 +44,12 @@ class GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"), symtab_node { public: + /* Return name. */ + const char *name () const; + + /* Return asm name. */ + const char * asm_name () const; + /* Type of the symbol. */ ENUM_BITFIELD (symtab_type) type : 8; @@ -589,8 +595,6 @@ void symtab_unregister_node (symtab_node *); void symtab_remove_node (symtab_node *); symtab_node *symtab_get_node (const_tree); symtab_node *symtab_node_for_asm (const_tree asmname); -const char * symtab_node_asm_name (symtab_node *); -const char * symtab_node_name (symtab_node *); void symtab_insert_node_to_hashtable (symtab_node *); void symtab_add_to_same_comdat_group (symtab_node *, symtab_node *); void symtab_dissolve_same_comdat_group_list (symtab_node *node); @@ -879,34 +883,6 @@ varpool_get_node (const_tree decl) return varpool (symtab_get_node (decl)); } -/* Return asm name of cgraph node. */ -static inline const char * -cgraph_node_asm_name (struct cgraph_node *node) -{ - return symtab_node_asm_name (node); -} - -/* Return asm name of varpool node. */ -static inline const char * -varpool_node_asm_name (struct varpool_node *node) -{ - return symtab_node_asm_name (node); -} - -/* Return name of cgraph node. */ -static inline const char * -cgraph_node_name (struct cgraph_node *node) -{ - return symtab_node_name (node); -} - -/* Return name of varpool node. */ -static inline const char * -varpool_node_name (struct varpool_node *node) -{ - return symtab_node_name (node); -} - /* Walk all symbols. */ #define FOR_EACH_SYMBOL(node) \ for ((node) = symtab_nodes; (node); (node) = (node)->next) |