diff options
author | Zachary Turner <zturner@google.com> | 2017-02-06 18:31:44 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-02-06 18:31:44 +0000 |
commit | 33aba3c290971bf10dd2f9503b3ac9f59e9254c0 (patch) | |
tree | 07cf4e201e248adc31fd7de4661cf4da34b2519d /lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp | |
parent | 3c74c68b1bd9d78ef5be1ea67a8d28f2fadc6f35 (diff) | |
download | bcm5719-llvm-33aba3c290971bf10dd2f9503b3ac9f59e9254c0.tar.gz bcm5719-llvm-33aba3c290971bf10dd2f9503b3ac9f59e9254c0.zip |
Get rid of Error::PutToLog().
Instead just rely on LLDB_LOG().
This is part of an effort to sort out dependency hell in LLDB.
Error is in Utility, but Log is in Core. Core can depend on
Utility, but not vice versa. So this patch moves the knowledge
about how to log Errors from the Error class to the Log file.
Differential Revision: https://reviews.llvm.org/D29514
llvm-svn: 294210
Diffstat (limited to 'lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp')
-rw-r--r-- | lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp b/lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp index 1cb084a5f63..0307aee91c3 100644 --- a/lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp +++ b/lldb/source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp @@ -319,7 +319,7 @@ bool OperatingSystemGo::UpdateThreadList(ThreadList &old_thread_list, for (uint64_t i = 0; i < allglen; ++i) { goroutines.push_back(CreateGoroutineAtIndex(i, err)); if (err.Fail()) { - err.PutToLog(log, "OperatingSystemGo::UpdateThreadList"); + LLDB_LOG(log, "error: {0}", err); return new_thread_list.GetSize(false) > 0; } } |