diff options
| author | Pavel Labath <labath@google.com> | 2017-03-01 10:08:40 +0000 |
|---|---|---|
| committer | Pavel Labath <labath@google.com> | 2017-03-01 10:08:40 +0000 |
| commit | 5e336903bee9f21420c5b03d9c5552afd14376b9 (patch) | |
| tree | fa2a1aa44d05503af31ef35a747a4b6a40cd54ad /lldb/tools/lldb-server/LLDBServerUtilities.cpp | |
| parent | 9c761a36b9a93bff188109502231cc60b96894e1 (diff) | |
| download | bcm5719-llvm-5e336903bee9f21420c5b03d9c5552afd14376b9.tar.gz bcm5719-llvm-5e336903bee9f21420c5b03d9c5552afd14376b9.zip | |
Modernize Enable/DisableLogChannel interface a bit
Summary:
Use StringRef and ArrayRef where possible. This adds an accessor to the
Args class to get a view of the arguments as ArrayRef<const char *>.
Reviewers: zturner
Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D30402
llvm-svn: 296592
Diffstat (limited to 'lldb/tools/lldb-server/LLDBServerUtilities.cpp')
| -rw-r--r-- | lldb/tools/lldb-server/LLDBServerUtilities.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/tools/lldb-server/LLDBServerUtilities.cpp b/lldb/tools/lldb-server/LLDBServerUtilities.cpp index e07087e00b2..bf7b555c35c 100644 --- a/lldb/tools/lldb-server/LLDBServerUtilities.cpp +++ b/lldb/tools/lldb-server/LLDBServerUtilities.cpp @@ -52,8 +52,8 @@ bool LLDBServerUtilities::SetupLogging(const std::string &log_file, channel_then_categories.Shift(); // Shift off the channel bool success = Log::EnableLogChannel( - log_stream_sp, log_options, channel.c_str(), - channel_then_categories.GetConstArgumentVector(), error_stream); + log_stream_sp, log_options, channel, + channel_then_categories.GetArgumentArrayRef(), error_stream); if (!success) { fprintf(stderr, "Unable to open log file '%s' for channel \"%s\"\n", log_file.c_str(), channel_with_categories.str().c_str()); |

