diff options
Diffstat (limited to 'lldb/source/Core/Log.cpp')
-rw-r--r-- | lldb/source/Core/Log.cpp | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/lldb/source/Core/Log.cpp b/lldb/source/Core/Log.cpp index b62df3c1fe9..28fb711b0ae 100644 --- a/lldb/source/Core/Log.cpp +++ b/lldb/source/Core/Log.cpp @@ -343,28 +343,13 @@ void Log::ListAllLogChannels(Stream *strm) { } } -bool Log::GetVerbose() const { - // FIXME: This has to be centralized between the stream and the log... - if (m_options.Test(LLDB_LOG_OPTION_VERBOSE)) - return true; - - // Make a copy of our stream shared pointer in case someone disables our - // log while we are logging and releases the stream - StreamSP stream_sp(m_stream_sp); - if (stream_sp) - return stream_sp->GetVerbose(); - return false; -} +bool Log::GetVerbose() const { return m_options.Test(LLDB_LOG_OPTION_VERBOSE); } //------------------------------------------------------------------ // Returns true if the debug flag bit is set in this stream. //------------------------------------------------------------------ bool Log::GetDebug() const { - // Make a copy of our stream shared pointer in case someone disables our - // log while we are logging and releases the stream - StreamSP stream_sp(m_stream_sp); - if (stream_sp) - return stream_sp->GetDebug(); + // TODO: remove and clean up callers return false; } |