[Lldb-commits] [lldb] r294744 - Really fix windows build

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 10 05:04:32 PST 2017


Author: labath
Date: Fri Feb 10 07:04:32 2017
New Revision: 294744

URL: http://llvm.org/viewvc/llvm-project?rev=294744&view=rev
Log:
Really fix windows build

this time I have actually tried that it compiles on windows.

Modified:
    lldb/trunk/source/Plugins/Process/Windows/Common/ProcessWindowsLog.cpp

Modified: lldb/trunk/source/Plugins/Process/Windows/Common/ProcessWindowsLog.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Windows/Common/ProcessWindowsLog.cpp?rev=294744&r1=294743&r2=294744&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Windows/Common/ProcessWindowsLog.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Windows/Common/ProcessWindowsLog.cpp Fri Feb 10 07:04:32 2017
@@ -102,7 +102,7 @@ void ProcessWindowsLog::DisableLog(const
     log->GetMask().Reset(flag_bits);
     if (flag_bits == 0) {
       g_log_enabled = false;
-      log->SetStream(lldb::StreamSP());
+      log->SetStream(nullptr);
     }
   }
 
@@ -110,7 +110,7 @@ void ProcessWindowsLog::DisableLog(const
 }
 
 Log *ProcessWindowsLog::EnableLog(
-    std::shared_ptr<llvm::raw_ostream> &log_stream_sp, uint32_t log_options,
+    const std::shared_ptr<llvm::raw_ostream> &log_stream_sp, uint32_t log_options,
     const char **args, Stream *feedback_strm) {
   // Try see if there already is a log - that way we can reuse its settings.
   // We could reuse the log in toto, but we don't know that the stream is the




More information about the lldb-commits mailing list