From 3bf6ac451c7eecc5184e7823f29a293b7df53fa0 Mon Sep 17 00:00:00 2001 From: Tim Moore Date: Tue, 20 May 2008 12:39:47 +0200 Subject: Use tr1/unordered_map instead of the deprecated ext/hash_map. --- tapsets.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tapsets.cxx') diff --git a/tapsets.cxx b/tapsets.cxx index c8f77fde..f3f9b590 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -20,7 +20,11 @@ #include #include #include +#ifdef HAVE_TR1_UNORDERED_MAP +#include +#else #include +#endif #include #include #include @@ -537,12 +541,17 @@ module_cache }; typedef struct module_cache module_cache_t; +#ifdef HAVE_TR1_UNORDERED_MAP +typedef tr1::unordered_map cu_function_cache_t; +typedef tr1::unordered_map mod_cu_function_cache_t; // module:cu -> function -> die +#else struct stringhash { size_t operator() (const string& s) const { hash h; return h(s.c_str()); } }; typedef hash_map cu_function_cache_t; typedef hash_map mod_cu_function_cache_t; // module:cu -> function -> die +#endif struct symbol_table -- cgit