]> sourceware.org Git - systemtap.git/commitdiff
Convert module_cu_cache_t to a stap_map
authorJosh Stone <jistone@redhat.com>
Wed, 26 Aug 2009 00:42:55 +0000 (17:42 -0700)
committerJosh Stone <jistone@redhat.com>
Wed, 26 Aug 2009 00:42:55 +0000 (17:42 -0700)
* dwflpp.cxx (module_cu_cache_t): Typedef as a stap_map instead.

dwflpp.h

index 9c3420908d7706c1754e5f779ee843d99578e597..08c137c75ac2ca5c08c3bf2937ad9793d2c60dcb 100644 (file)
--- a/dwflpp.h
+++ b/dwflpp.h
@@ -59,6 +59,9 @@ template<class K, class V> struct stap_map {
 };
 #endif
 
+// module -> cu die[]
+typedef stap_map<Dwarf*, std::vector<Dwarf_Die>*>::type module_cu_cache_t;
+
 // function -> die
 typedef stap_map<std::string, Dwarf_Die>::type cu_function_cache_t;
 
@@ -289,7 +292,6 @@ private:
   void setup_kernel(const std::string& module_name, bool debuginfo_needed = true);
   void setup_user(const std::vector<std::string>& modules, bool debuginfo_needed = true);
 
-  typedef std::map<Dwarf*, std::vector<Dwarf_Die>*> module_cu_cache_t;
   module_cu_cache_t module_cu_cache;
 
   cu_inl_function_cache_t cu_inl_function_cache;
This page took 0.03173 seconds and 5 git commands to generate.