diff options
author | Zachary Turner <zturner@google.com> | 2016-11-12 16:56:47 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-11-12 16:56:47 +0000 |
commit | fe11483b57c1dc6a6758725e6de0d6804ec59ed1 (patch) | |
tree | af50255449e1a57e1a528735cfa3458a5e9e66d2 /lldb/source/Interpreter/Options.cpp | |
parent | c351fb16079ae8c88e868960829107a823a86246 (diff) | |
download | bcm5719-llvm-fe11483b57c1dc6a6758725e6de0d6804ec59ed1.tar.gz bcm5719-llvm-fe11483b57c1dc6a6758725e6de0d6804ec59ed1.zip |
Make Options::SetOptionValue take a StringRef.
llvm-svn: 286723
Diffstat (limited to 'lldb/source/Interpreter/Options.cpp')
-rw-r--r-- | lldb/source/Interpreter/Options.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Interpreter/Options.cpp b/lldb/source/Interpreter/Options.cpp index 3473c20796f..c95876fe41a 100644 --- a/lldb/source/Interpreter/Options.cpp +++ b/lldb/source/Interpreter/Options.cpp @@ -905,7 +905,7 @@ void OptionGroupOptions::Finalize() { } Error OptionGroupOptions::SetOptionValue(uint32_t option_idx, - const char *option_value, + llvm::StringRef option_value, ExecutionContext *execution_context) { // After calling OptionGroupOptions::Append(...), you must finalize the groups // by calling OptionGroupOptions::Finlize() @@ -913,8 +913,8 @@ Error OptionGroupOptions::SetOptionValue(uint32_t option_idx, Error error; if (option_idx < m_option_infos.size()) { error = m_option_infos[option_idx].option_group->SetOptionValue( - m_option_infos[option_idx].option_index, - llvm::StringRef::withNullAsEmpty(option_value), execution_context); + m_option_infos[option_idx].option_index, option_value, + execution_context); } else { error.SetErrorString("invalid option index"); // Shouldn't happen... |