diff options
| author | Enrico Granata <egranata@apple.com> | 2012-11-08 19:16:03 +0000 |
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2012-11-08 19:16:03 +0000 |
| commit | efe637d440cb706d93ab665e0180efbe0908084a (patch) | |
| tree | 439b0b2124950a38dbe377992b1251c5621a3d5e /lldb/source/Target/Target.cpp | |
| parent | 8d16bd4d10abac4e9c9bde73ff4505a8fea5caad (diff) | |
| download | bcm5719-llvm-efe637d440cb706d93ab665e0180efbe0908084a.tar.gz bcm5719-llvm-efe637d440cb706d93ab665e0180efbe0908084a.zip | |
Minor cleanups to the new ModuleList notification APIs: passing in the ModuleList as part of the callbacks, and not copying the notifier as part of copy constructing and assigning
llvm-svn: 167592
Diffstat (limited to 'lldb/source/Target/Target.cpp')
| -rw-r--r-- | lldb/source/Target/Target.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index b9616039125..ec88710a843 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -1059,31 +1059,31 @@ Target::SetArchitecture (const ArchSpec &arch_spec) } void -Target::WillClearList () +Target::WillClearList (const ModuleList& module_list) { } void -Target::ModuleAdded (const ModuleSP &module_sp) +Target::ModuleAdded (const ModuleList& module_list, const ModuleSP &module_sp) { // A module is being added to this target for the first time - ModuleList module_list; - module_list.Append(module_sp); + ModuleList my_module_list; + my_module_list.Append(module_sp); LoadScriptingResourceForModule(module_sp, this); - ModulesDidLoad (module_list); + ModulesDidLoad (my_module_list); } void -Target::ModuleRemoved (const ModuleSP &module_sp) +Target::ModuleRemoved (const ModuleList& module_list, const ModuleSP &module_sp) { // A module is being added to this target for the first time - ModuleList module_list; - module_list.Append(module_sp); - ModulesDidUnload (module_list); + ModuleList my_module_list; + my_module_list.Append(module_sp); + ModulesDidUnload (my_module_list); } void -Target::ModuleUpdated (const ModuleSP &old_module_sp, const ModuleSP &new_module_sp) +Target::ModuleUpdated (const ModuleList& module_list, const ModuleSP &old_module_sp, const ModuleSP &new_module_sp) { // A module is replacing an already added module m_breakpoint_list.UpdateBreakpointsWhenModuleIsReplaced(old_module_sp, new_module_sp); |

