summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErick Ochoa <erick.ochoa@theobroma-systems.com>2020-02-21 19:14:13 +0100
committerErick Ochoa <erick.ochoa@theobroma-systems.com>2020-04-28 23:35:38 +0200
commit72b9020841e4cb97099c892ca70ec6e77cc4294f (patch)
treec4f0ee4b7d081a52caf22d319a534cb1d501c25e
parent82b275a6cdfa48f68909ead9ef794b06c9abfc7b (diff)
Fixes warning
-rw-r--r--gcc/ipa-str-reorg-dead-field-eliminate.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/gcc/ipa-str-reorg-dead-field-eliminate.c b/gcc/ipa-str-reorg-dead-field-eliminate.c
index 7ace11ec6b0..08c35022627 100644
--- a/gcc/ipa-str-reorg-dead-field-eliminate.c
+++ b/gcc/ipa-str-reorg-dead-field-eliminate.c
@@ -1041,36 +1041,6 @@ filter_parm_decls (tree parm_decl, hash_set<const_tree> &type_map)
return filter_out_boring_type (type, type_map);
}
-static bool
-collect_ssa_decls (cgraph_node *cnode,
- bool (*filter) (tree, hash_set<const_tree> &),
- hash_set<const_tree> &decl_map)
-{
- unsigned i;
- tree name;
- push_cfun (DECL_STRUCT_FUNCTION (cnode->decl));
- cnode->get_untransformed_body ();
- if (!cnode->decl)
- return false;
- FOR_EACH_SSA_NAME (i, name, cfun)
- {
- bool filter_out = (*filter) (name, decl_map);
- if (filter_out)
- continue;
-
- tree type = TREE_TYPE (name);
- bool is_inside = decl_map.contains(type);
- if (is_inside)
- continue;
-
- const char *type_identifier = get_type_name (type);
- test_log ("collecting,%s", 0, type_identifier);
- decl_map.add (type);
- }
- pop_cfun ();
- return false;
-}
-
static void
collect_parm_declarations (cgraph_node *cnode,
bool (*filter) (tree, hash_set<const_tree> &),