diff options
Diffstat (limited to 'lldb/source/Core/Logging.cpp')
-rw-r--r-- | lldb/source/Core/Logging.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/source/Core/Logging.cpp b/lldb/source/Core/Logging.cpp index 1d42df111a4..49e22c4b0c8 100644 --- a/lldb/source/Core/Logging.cpp +++ b/lldb/source/Core/Logging.cpp @@ -167,14 +167,15 @@ void lldb_private::DisableLog(const char **categories, Stream *feedback_strm) { } log->GetMask().Reset(flag_bits); if (flag_bits == 0) { - log->SetStream(lldb::StreamSP()); + log->SetStream(nullptr); g_log_enabled = false; } } } -Log *lldb_private::EnableLog(StreamSP &log_stream_sp, uint32_t log_options, - const char **categories, Stream *feedback_strm) { +Log *lldb_private::EnableLog( + const std::shared_ptr<llvm::raw_ostream> &log_stream_sp, + uint32_t log_options, const char **categories, 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 // same. |