diff options
author | Pavel Labath <labath@google.com> | 2017-03-15 09:06:58 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2017-03-15 09:06:58 +0000 |
commit | 775588c0c308705bafe0e2d8e974b244c779d73c (patch) | |
tree | eadc023efafad72930b2c622519c349e2109edbf /lldb/source/Core/Debugger.cpp | |
parent | 6de25ec61a10cdea5b49f91ae7163833c45aacb1 (diff) | |
download | bcm5719-llvm-775588c0c308705bafe0e2d8e974b244c779d73c.tar.gz bcm5719-llvm-775588c0c308705bafe0e2d8e974b244c779d73c.zip |
Remove lldb streams from the Log class completely
Summary:
previously we switched to llvm streams for log output, this completes
the switch for the error streams.
I also clean up the includes and remove the unused argument from
DisableAllLogChannels().
This required adding a bit of boiler plate to convert the output in the
command interpreter, but that should go away when we switch command
results to use llvm streams as well.
Reviewers: zturner, eugene
Subscribers: lldb-commits, emaste
Differential Revision: https://reviews.llvm.org/D30894
llvm-svn: 297812
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r-- | lldb/source/Core/Debugger.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index 8af2bad2255..9ac65a6d3d9 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -1242,7 +1242,7 @@ void Debugger::SetLoggingCallback(lldb::LogOutputCallback log_callback, bool Debugger::EnableLog(llvm::StringRef channel, llvm::ArrayRef<const char *> categories, llvm::StringRef log_file, uint32_t log_options, - Stream &error_stream) { + llvm::raw_ostream &error_stream) { const bool should_close = true; const bool unbuffered = true; @@ -1266,7 +1266,7 @@ bool Debugger::EnableLog(llvm::StringRef channel, int FD; if (std::error_code ec = llvm::sys::fs::openFileForWrite(log_file, FD, flags)) { - error_stream.Format("Unable to open log file: {0}", ec.message()); + error_stream << "Unable to open log file: " << ec.message(); return false; } log_stream_sp.reset( |