diff options
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index afb2745a841..f0f9961b1b5 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -1362,13 +1362,6 @@ public: cgraph_node *prev_sibling_clone; cgraph_node *clones; cgraph_node *clone_of; - /* If instrumentation_clone is 1 then instrumented_version points - to the original function used to make instrumented version. - Otherwise points to instrumented version of the function. */ - cgraph_node *instrumented_version; - /* If instrumentation_clone is 1 then orig_decl is the original - function declaration. */ - tree orig_decl; /* For functions with many calls sites it holds map from call expression to the edge to speed up cgraph_edge function. */ hash_table<cgraph_edge_hasher> *GTY(()) call_site_hash; @@ -1433,9 +1426,6 @@ public: unsigned calls_comdat_local : 1; /* True if node has been created by merge operation in IPA-ICF. */ unsigned icf_merged: 1; - /* True when function is clone created for Pointer Bounds Checker - instrumentation. */ - unsigned instrumentation_clone : 1; /* True if call to node can't result in a call to free, munmap or other operation that could make previously non-trapping memory accesses trapping. */ @@ -2386,9 +2376,6 @@ bool ipa_discover_readonly_nonaddressable_vars (void); /* In varpool.c */ tree ctor_for_folding (tree); -/* In tree-chkp.c */ -extern bool chkp_function_instrumented_p (tree fndecl); - /* In ipa-inline-analysis.c */ void initialize_inline_failed (struct cgraph_edge *); bool speculation_useful_p (struct cgraph_edge *e, bool anticipate_inlining); @@ -2449,8 +2436,6 @@ symtab_node::get_alias_target (void) { ipa_ref *ref = NULL; iterate_reference (0, ref); - if (ref->use == IPA_REF_CHKP) - iterate_reference (1, ref); gcc_checking_assert (ref->use == IPA_REF_ALIAS); return ref->referred; } @@ -2905,12 +2890,6 @@ inline bool cgraph_node::can_remove_if_no_direct_calls_and_refs_p (void) { gcc_checking_assert (!global.inlined_to); - /* Instrumentation clones should not be removed before - instrumentation happens. New callers may appear after - instrumentation. */ - if (instrumentation_clone - && !chkp_function_instrumented_p (decl)) - return false; /* Extern inlines can always go, we will use the external definition. */ if (DECL_EXTERNAL (decl)) return true; @@ -3318,18 +3297,6 @@ ipa_polymorphic_call_context::useless_p () const return (!outer_type && !speculative_outer_type); } -/* Return true if NODE is local. Instrumentation clones are counted as local - only when original function is local. */ - -static inline bool -cgraph_local_p (cgraph_node *node) -{ - if (!node->instrumentation_clone || !node->instrumented_version) - return node->local.local; - - return node->local.local && node->instrumented_version->local.local; -} - /* When using fprintf (or similar), problems can arise with transient generated strings. Many string-generation APIs only support one result being alive at once (e.g. by |