[Lldb-commits] [PATCH] D142150: [lldb] Remove timer from SBModule copy ctor

Dave Lee via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 19 11:12:22 PST 2023


kastiglione created this revision.
kastiglione added a reviewer: aprantl.
Herald added a project: All.
kastiglione requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

The SBModule copy constructor has fast execution, and is high firing. Fast and
frequent functions are not good candidates for timers.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142150

Files:
  lldb/source/API/SBModule.cpp


Index: lldb/source/API/SBModule.cpp
===================================================================
--- lldb/source/API/SBModule.cpp
+++ lldb/source/API/SBModule.cpp
@@ -43,9 +43,7 @@
     SetSP(module_sp);
 }
 
-SBModule::SBModule(const SBModule &rhs) : m_opaque_sp(rhs.m_opaque_sp) {
-  LLDB_INSTRUMENT_VA(this, rhs);
-}
+SBModule::SBModule(const SBModule &rhs) = default;
 
 SBModule::SBModule(lldb::SBProcess &process, lldb::addr_t header_addr) {
   LLDB_INSTRUMENT_VA(this, process, header_addr);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142150.490606.patch
Type: text/x-patch
Size: 506 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230119/3e032042/attachment.bin>


More information about the lldb-commits mailing list