mib added inline comments.

================
Comment at: lldb/source/Utility/Log.cpp:325
     std::lock_guard<std::recursive_mutex> guard(g_LogThreadedMutex);
-    *stream_sp << message;
-    stream_sp->flush();
+    handler_sp->Emit(message);
+    handler_sp->Flush();
----------------
JDevlieghere wrote:
> clayborg wrote:
> > Will this copy the string? The Emit() calls take a "std::string", maybe we 
> > should switch it to "const std::string &" to avoid any copies?
> Yeah,  was planning on `std::move`-ing everything but I already found a few 
> cases where that doesn't work. This should indeed take a reference. 
+1


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127922/new/

https://reviews.llvm.org/D127922

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to