diff options
author | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-24 12:25:27 +0000 |
---|---|---|
committer | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-24 12:25:27 +0000 |
commit | 97221fd7903276402e3ba1bbebf3f6e4f27f2068 (patch) | |
tree | 472ea9046d4a0e5c2441a25416c6e99fb4665350 /gcc/ubsan.c | |
parent | 1093e55d8f9b571e264e123a5e30252fd1b5ccf7 (diff) | |
download | gcc-97221fd7903276402e3ba1bbebf3f6e4f27f2068.tar.gz |
IPA C++ refactoring 2/N
* cgraph.h (varpool_node):
(availability get_availability (void)):
created from cgraph_variable_initializer_availability
(inline varpool_node *ultimate_alias_target (availability *availability = NULL)
creted from: cgraph_variable_initializer_availability
(inline varpool_node *get_alias_target (void)): created from varpool_alias_target
(void finalize_named_section_flags (void)):
created from varpool_finalize_named_section_flags
(bool assemble_decl (void)): created from varpool_assemble_decl
(void analyze (void)): created from varpool_analyze_node
(bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
(void remove_initializer (void)): created from varpool_remove_initializer
(tree get_constructor (void)): created from varpool_get_constructor
(bool externally_visible_p (void)): created from varpool_externally_visible_p
(bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
(inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
(inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
(static inline varpool_node *get (const_tree decl)): created from varpool_get_node
(static void finalize_decl (tree decl)): created from varpool_finalize_decl
(static bool output_variables (void)): created from varpool_output_variables
(static varpool_node * create_extra_name_alias (tree alias, tree decl)):
created from varpool_extra_name_alias
(static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
(static void dump_varpool (FILE *f)): created from dump_varpool
(static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
(static varpool_node *create_empty (void)): created from varpool_create_empty_node
(static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
(static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
(void assemble_aliases (void)): created from assemble_aliases
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212984 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ubsan.c')
-rw-r--r-- | gcc/ubsan.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/ubsan.c b/gcc/ubsan.c index fd9bf20a30d..4e7e4878c66 100644 --- a/gcc/ubsan.c +++ b/gcc/ubsan.c @@ -295,10 +295,10 @@ ubsan_type_descriptor (tree type, enum ubsan_print_style pstyle) tree decl = decl_for_type_lookup (type); /* It is possible that some of the earlier created DECLs were found - unused, in that case they weren't emitted and varpool_get_node + unused, in that case they weren't emitted and varpool_node::get returns NULL node on them. But now we really need them. Thus, renew them here. */ - if (decl != NULL_TREE && varpool_get_node (decl)) + if (decl != NULL_TREE && varpool_node::get (decl)) return build_fold_addr_expr (decl); tree dtype = ubsan_type_descriptor_type (); @@ -441,7 +441,7 @@ ubsan_type_descriptor (tree type, enum ubsan_print_style pstyle) TREE_CONSTANT (ctor) = 1; TREE_STATIC (ctor) = 1; DECL_INITIAL (decl) = ctor; - varpool_finalize_decl (decl); + varpool_node::finalize_decl (decl); /* Save the VAR_DECL into the hash table. */ decl_for_type_insert (type, decl); @@ -553,7 +553,7 @@ ubsan_create_data (const char *name, const location_t *ploc, TREE_CONSTANT (ctor) = 1; TREE_STATIC (ctor) = 1; DECL_INITIAL (var) = ctor; - varpool_finalize_decl (var); + varpool_node::finalize_decl (var); return var; } |