diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-08 12:32:37 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-08 12:32:37 +0000 |
commit | 313d62a349ecb8ad8a419783fe776c7ecd5384d0 (patch) | |
tree | 7717c5e62d64af14c96a1abe2b5c0bd6b8300db2 /gcc/lto-symtab.c | |
parent | a540eb41c1e6735a9a0b9c549e6be624a25c9e6a (diff) | |
download | gcc-313d62a349ecb8ad8a419783fe776c7ecd5384d0.tar.gz |
2012-10-08 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 192205 using svnmerge.py
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@192206 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-symtab.c')
-rw-r--r-- | gcc/lto-symtab.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/gcc/lto-symtab.c b/gcc/lto-symtab.c index cd8ca67b0c0..25c0b22dc48 100644 --- a/gcc/lto-symtab.c +++ b/gcc/lto-symtab.c @@ -32,40 +32,6 @@ along with GCC; see the file COPYING3. If not see /* Vector to keep track of external variables we've seen so far. */ VEC(tree,gc) *lto_global_var_decls; -/* Registers DECL with the LTO symbol table as having resolution RESOLUTION - and read from FILE_DATA. */ - -void -lto_symtab_register_decl (tree decl, - ld_plugin_symbol_resolution_t resolution, - struct lto_file_decl_data *file_data) -{ - symtab_node node; - - /* Check that declarations reaching this function do not have - properties inconsistent with having external linkage. If any of - these asertions fail, then the object file reader has failed to - detect these cases and issue appropriate error messages. */ - gcc_assert (decl - && TREE_PUBLIC (decl) - && (TREE_CODE (decl) == VAR_DECL - || TREE_CODE (decl) == FUNCTION_DECL) - && DECL_ASSEMBLER_NAME_SET_P (decl)); - if (TREE_CODE (decl) == VAR_DECL - && DECL_INITIAL (decl)) - gcc_assert (!DECL_EXTERNAL (decl) - || (TREE_STATIC (decl) && TREE_READONLY (decl))); - if (TREE_CODE (decl) == FUNCTION_DECL) - gcc_assert (!DECL_ABSTRACT (decl)); - - node = symtab_get_node (decl); - if (node) - { - node->symbol.resolution = resolution; - gcc_assert (node->symbol.lto_file_data == file_data); - } -} - /* Replace the cgraph node NODE with PREVAILING_NODE in the cgraph, merging all edges and removing the old node. */ |