summaryrefslogtreecommitdiffstats
path: root/dwflpp.h
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-08-25 17:42:55 -0700
committerJosh Stone <jistone@redhat.com>2009-08-25 17:42:55 -0700
commitbe53d3135d2f22032917b0da19a2f9783d3f2705 (patch)
tree9267cc8aad1f61f86574df43a9a76d47074f7c02 /dwflpp.h
parentd089f5b2932a473692f8c3e1badb883fabc55dee (diff)
downloadsystemtap-steved-be53d3135d2f22032917b0da19a2f9783d3f2705.tar.gz
systemtap-steved-be53d3135d2f22032917b0da19a2f9783d3f2705.tar.xz
systemtap-steved-be53d3135d2f22032917b0da19a2f9783d3f2705.zip
Convert module_cu_cache_t to a stap_map
* dwflpp.cxx (module_cu_cache_t): Typedef as a stap_map instead.
Diffstat (limited to 'dwflpp.h')
-rw-r--r--dwflpp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/dwflpp.h b/dwflpp.h
index 9c342090..08c137c7 100644
--- 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;