aboutsummaryrefslogtreecommitdiff
path: root/gcc/except.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2015-06-25 17:16:15 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2015-06-25 17:16:15 +0000
commit84a98514b3d659ab6ca4b6bc624a1b7453fa0daa (patch)
treece4faaa466bf8b43e8a1e7d3bcd62a5d44dc9e40 /gcc/except.c
parent5d6678ae80850da572b28776ef9dd19b04d5fefd (diff)
downloadgcc-84a98514b3d659ab6ca4b6bc624a1b7453fa0daa.zip
gcc-84a98514b3d659ab6ca4b6bc624a1b7453fa0daa.tar.gz
gcc-84a98514b3d659ab6ca4b6bc624a1b7453fa0daa.tar.bz2
tree-hash-traits.h (tree_hash): New class.
gcc/ * tree-hash-traits.h (tree_hash): New class. * except.c: Include tree-hash-traits.h. (tree_hash_traits): Use tree_hash. From-SVN: r224970
Diffstat (limited to 'gcc/except.c')
-rw-r--r--gcc/except.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/except.c b/gcc/except.c
index ce1e31f..081b402 100644
--- a/gcc/except.c
+++ b/gcc/except.c
@@ -159,14 +159,11 @@ along with GCC; see the file COPYING3. If not see
#include "tree-pass.h"
#include "cfgloop.h"
#include "builtins.h"
+#include "tree-hash-traits.h"
static GTY(()) int call_site_base;
-struct tree_hash_traits : default_hashmap_traits
-{
- static hashval_t hash (tree t) { return TREE_HASH (t); }
-};
-
+struct tree_hash_traits : simple_hashmap_traits <tree_hash> {};
static GTY (()) hash_map<tree, tree, tree_hash_traits> *type_to_runtime_map;
/* Describe the SjLj_Function_Context structure. */