diff options
author | Martin Liska <mliska@suse.cz> | 2019-12-09 10:00:42 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-12-09 09:00:42 +0000 |
commit | a65d584dc1aaaad77af0a8e2ab36a29729d6e056 (patch) | |
tree | 6f7bf76913286dec5edeaaf3fd0e6dedbbb51f74 /gcc/cgraphunit.c | |
parent | 4383959047812511798e397511c9f4904eafe23d (diff) | |
download | gcc-a65d584dc1aaaad77af0a8e2ab36a29729d6e056.zip gcc-a65d584dc1aaaad77af0a8e2ab36a29729d6e056.tar.gz gcc-a65d584dc1aaaad77af0a8e2ab36a29729d6e056.tar.bz2 |
Come up with constructors of symtab_node, cgraph_node and varpool_node.
2019-12-09 Martin Liska <mliska@suse.cz>
PR ipa/92737
* cgraph.c (symbol_table_test::symbol_table_test): Fix
coding style.
* cgraph.h (symtab_node::symtab_node): New constructor.
(cgraph_node::cgraph_node): Likewise.
(varpool_node::varpool_node): Likewise.
(symbol_table::allocate_cgraph_symbol): Use newly
created constructor.
(symbol_table::allocate_cgraph_symbol): Remove.
* cgraphunit.c (symtab_terminator): Likewise.
* varpool.c (varpool_node::create_empty): Use newly
created constructor.
From-SVN: r279109
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 0468ccf..e630a4f 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -274,7 +274,7 @@ symtab_node::needed_p (void) /* Head and terminator of the queue of nodes to be processed while building callgraph. */ -static symtab_node symtab_terminator; +static symtab_node symtab_terminator (SYMTAB_SYMBOL); static symtab_node *queued_nodes = &symtab_terminator; /* Add NODE to queue starting at QUEUED_NODES. |