summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErick Ochoa <erick.ochoa@theobroma-systems.com>2020-12-02 12:09:18 +0100
committerErick Ochoa <erick.ochoa@theobroma-systems.com>2020-12-02 12:09:18 +0100
commit0431e1622df24f34622db28cd54dfe6f882b285f (patch)
tree6823ea4ced4b55c6b1c208b013e5e65b1c9869f5
parenta870386ac0f09ab47dc4204b2312d2dc081d6d26 (diff)
remove dead function
-rw-r--r--gcc/ipa-type-escape-analysis.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/gcc/ipa-type-escape-analysis.h b/gcc/ipa-type-escape-analysis.h
index 5b4e610a239..dd32e28c978 100644
--- a/gcc/ipa-type-escape-analysis.h
+++ b/gcc/ipa-type-escape-analysis.h
@@ -732,32 +732,6 @@ public:
return how_many_records <= 1;
}
- bool does_not_call_external_functions (cgraph_node *c,
- std::map<tree, bool> &whitelisted)
- {
- gcc_assert(c);
-
- for (cgraph_edge *edge = c->callees; edge; edge = edge->next_callee)
- {
- cgraph_node *callee = edge->callee;
- if (callee == c) continue;
- bool in_map = whitelisted.find (callee->decl) != whitelisted.end();
- if (!in_map) {
- return false;
- }
- bool w = whitelisted[callee->decl];
- if (!w) {
- return false;
- }
-
- return true;
- }
-
- unsigned int how_many_records =
- _expr_collector._type_collector.ptrset.records.size ();
- return how_many_records <= 1;
-
- }
/* Will walk declarations, locals, ssa names, and basic blocks. */
virtual void _walk_cnode (cgraph_node *cnode)