diff options
author | Tim Moore <timoore@redhat.com> | 2008-05-20 12:39:47 +0200 |
---|---|---|
committer | Tim Moore <timoore@redhat.com> | 2008-05-20 12:39:47 +0200 |
commit | 3bf6ac451c7eecc5184e7823f29a293b7df53fa0 (patch) | |
tree | a63adab8c29a6f2596c582cc4dcfa7ccda7060a7 /tapsets.cxx | |
parent | c4c1558bbb72f56307d70661ac125544f1b88ffd (diff) | |
download | systemtap-steved-3bf6ac451c7eecc5184e7823f29a293b7df53fa0.tar.gz systemtap-steved-3bf6ac451c7eecc5184e7823f29a293b7df53fa0.tar.xz systemtap-steved-3bf6ac451c7eecc5184e7823f29a293b7df53fa0.zip |
Use tr1/unordered_map instead of the deprecated ext/hash_map.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index c8f77fde..f3f9b590 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -20,7 +20,11 @@ #include <deque> #include <iostream> #include <map> +#ifdef HAVE_TR1_UNORDERED_MAP +#include <tr1/unordered_map> +#else #include <ext/hash_map> +#endif #include <set> #include <sstream> #include <stdexcept> @@ -537,12 +541,17 @@ module_cache }; typedef struct module_cache module_cache_t; +#ifdef HAVE_TR1_UNORDERED_MAP +typedef tr1::unordered_map<string,Dwarf_Die> cu_function_cache_t; +typedef tr1::unordered_map<string,cu_function_cache_t*> mod_cu_function_cache_t; // module:cu -> function -> die +#else struct stringhash { size_t operator() (const string& s) const { hash<const char*> h; return h(s.c_str()); } }; typedef hash_map<string,Dwarf_Die,stringhash> cu_function_cache_t; typedef hash_map<string,cu_function_cache_t*,stringhash> mod_cu_function_cache_t; // module:cu -> function -> die +#endif struct symbol_table |