aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2015-06-25 17:16:59 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2015-06-25 17:16:59 +0000
commit0ef08bc588a22e4a98adfc92dd63e753ebc27d3d (patch)
tree5f307e170e4efeb85e02b752e687e921eae3eedf /gcc/cfgexpand.c
parent9654754bd9ab263c3d2a6e04bbd1a4dc36f9f280 (diff)
downloadgcc-0ef08bc588a22e4a98adfc92dd63e753ebc27d3d.zip
gcc-0ef08bc588a22e4a98adfc92dd63e753ebc27d3d.tar.gz
gcc-0ef08bc588a22e4a98adfc92dd63e753ebc27d3d.tar.bz2
hash-map-traits.h (unbounded_hashmap_traits): New class.
gcc/ * hash-map-traits.h (unbounded_hashmap_traits): New class. (unbounded_int_hashmap_traits): Likewise. * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits. From-SVN: r224975
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r--gcc/cfgexpand.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index 6b79b1d..a2b9977 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -610,25 +610,7 @@ stack_var_cmp (const void *a, const void *b)
return 0;
}
-struct part_traits : default_hashmap_traits
-{
- template<typename T>
- static bool
- is_deleted (T &e)
- { return e.m_value == reinterpret_cast<void *> (1); }
-
- template<typename T> static bool is_empty (T &e) { return e.m_value == NULL; }
- template<typename T>
- static void
- mark_deleted (T &e)
- { e.m_value = reinterpret_cast<T> (1); }
-
- template<typename T>
- static void
- mark_empty (T &e)
- { e.m_value = NULL; }
-};
-
+struct part_traits : unbounded_int_hashmap_traits <size_t, bitmap> {};
typedef hash_map<size_t, bitmap, part_traits> part_hashmap;
/* If the points-to solution *PI points to variables that are in a partition