[Lldb-commits] [PATCH] Make ModuleCache::Get to return instantiated ModuleSP instance so already created in-memory instance can be returned instead of creating a new one.

Greg Clayton clayborg at gmail.com
Wed Mar 11 14:59:47 PDT 2015


Use lldb::ModuleWP instead of std::weak_ptr<Module> and this is good to go.


================
Comment at: source/Utility/ModuleCache.h:70
@@ -68,1 +69,3 @@
+
+    std::unordered_map<std::string, std::weak_ptr<Module>> m_loaded_modules;
 };
----------------
Use lldb::ModuleWP instead of std::weak_ptr<Module>.

http://reviews.llvm.org/D8270

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the lldb-commits mailing list