diff options
author | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-03-16 18:28:26 +0000 |
---|---|---|
committer | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-03-16 18:28:26 +0000 |
commit | 36795c14580569a618700d0c9dd52453c34f102c (patch) | |
tree | 44cbe43210e8984133ff108e95aff0a04bb0d65c /gcc/varpool.c | |
parent | 02c05c9b281f7bce0d2dd4e153f74d9fdb2efbdb (diff) | |
download | gcc-36795c14580569a618700d0c9dd52453c34f102c.tar.gz |
* cgraph.h (add_new_static_var): Remove declaration.
* varpool.c (add_new_static_var): Remove function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221462 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varpool.c')
-rw-r--r-- | gcc/varpool.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/gcc/varpool.c b/gcc/varpool.c index ce6427956d8..f1439ca6ee3 100644 --- a/gcc/varpool.c +++ b/gcc/varpool.c @@ -760,27 +760,6 @@ symbol_table::output_variables (void) return changed; } -/* Create a new global variable of type TYPE. */ -tree -add_new_static_var (tree type) -{ - tree new_decl; - varpool_node *new_node; - - new_decl = create_tmp_var_raw (type); - DECL_NAME (new_decl) = create_tmp_var_name (NULL); - TREE_READONLY (new_decl) = 0; - TREE_STATIC (new_decl) = 1; - TREE_USED (new_decl) = 1; - DECL_CONTEXT (new_decl) = NULL_TREE; - DECL_ABSTRACT_P (new_decl) = false; - lang_hooks.dup_lang_specific_decl (new_decl); - new_node = varpool_node::get_create (new_decl); - varpool_node::finalize_decl (new_decl); - - return new_node->decl; -} - /* Attempt to mark ALIAS as an alias to DECL. Return TRUE if successful. Extra name aliases are output whenever DECL is output. */ |