Update OptionGroup::SetValue to take StringRef.
Then deal with all the fallout.
Differential Revision: https://reviews.llvm.org/D24847
llvm-svn: 282265
diff --git a/lldb/source/Interpreter/OptionValueUInt64.cpp b/lldb/source/Interpreter/OptionValueUInt64.cpp
index 8296431..8986080 100644
--- a/lldb/source/Interpreter/OptionValueUInt64.cpp
+++ b/lldb/source/Interpreter/OptionValueUInt64.cpp
@@ -20,10 +20,10 @@
using namespace lldb;
using namespace lldb_private;
-lldb::OptionValueSP OptionValueUInt64::Create(const char *value_cstr,
+lldb::OptionValueSP OptionValueUInt64::Create(llvm::StringRef value_str,
Error &error) {
lldb::OptionValueSP value_sp(new OptionValueUInt64());
- error = value_sp->SetValueFromString(value_cstr);
+ error = value_sp->SetValueFromString(value_str);
if (error.Fail())
value_sp.reset();
return value_sp;