diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-25 17:16:59 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-25 17:16:59 +0000 |
commit | d5fb61356f9ecdaf8d7e23fd4cef50a793ef059f (patch) | |
tree | 5f307e170e4efeb85e02b752e687e921eae3eedf /gcc/cfgexpand.c | |
parent | 091deb37761b46205932413776447534ff417629 (diff) | |
download | gcc-d5fb61356f9ecdaf8d7e23fd4cef50a793ef059f.tar.gz |
gcc/
* hash-map-traits.h (unbounded_hashmap_traits): New class.
(unbounded_int_hashmap_traits): Likewise.
* cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224975 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r-- | gcc/cfgexpand.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index 6b79b1dae77..a2b9977ebb1 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 |