summaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2015-03-10 08:25:31 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2015-03-10 08:25:31 +0000
commit6f0f5716f4e01dd917f36a3ad2b099b57d0487a6 (patch)
treed1de264ae6e54268322deca2976d4fa689a77be6 /gcc/cgraph.h
parentafddacc6cb1b2d3f0bb72233321ee3d47385b208 (diff)
downloadgcc-6f0f5716f4e01dd917f36a3ad2b099b57d0487a6.tar.gz
2015-03-10 Richard Biener <rguenther@suse.de>
PR middle-end/44563 * cgraph.h (struct cgraph_edge_hasher): Add hash overload for compare_type. * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer. (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash. (cgraph_add_edge_to_call_site_hash): Likewise. (cgraph_node::get_edge): Likewise. (cgraph_edge::set_call_stmt): Likewise. (cgraph_edge::remove_caller): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221308 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index 2b96b6bcd06..99af026d2d7 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -788,6 +788,7 @@ struct cgraph_edge_hasher : ggc_hasher<cgraph_edge *>
typedef gimple compare_type;
static hashval_t hash (cgraph_edge *);
+ static hashval_t hash (gimple);
static bool equal (cgraph_edge *, gimple);
};