diff options
| author | Zachary Turner <zturner@google.com> | 2016-11-17 23:05:28 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2016-11-17 23:05:28 +0000 |
| commit | b379d7df12b50199303f56df60b21663c2c2144e (patch) | |
| tree | 3d2bb9c3f59aa2eb01370cb9dba944acefd066be /lldb/source/Core/ValueObjectVariable.cpp | |
| parent | 2174b6fe728b7056ab41003cdd5a99fd3b1f6395 (diff) | |
| download | bcm5719-llvm-b379d7df12b50199303f56df60b21663c2c2144e.tar.gz bcm5719-llvm-b379d7df12b50199303f56df60b21663c2c2144e.zip | |
Change RegisterValue getters / setters to use StringRef.
In the process, found some functions that were duplicates of
existing StringRef member functions. So deleted those functions
and used the StringRef functions instead.
llvm-svn: 287279
Diffstat (limited to 'lldb/source/Core/ValueObjectVariable.cpp')
| -rw-r--r-- | lldb/source/Core/ValueObjectVariable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/ValueObjectVariable.cpp b/lldb/source/Core/ValueObjectVariable.cpp index f0695d85ac2..f8eedc30e70 100644 --- a/lldb/source/Core/ValueObjectVariable.cpp +++ b/lldb/source/Core/ValueObjectVariable.cpp @@ -343,7 +343,7 @@ bool ValueObjectVariable::SetValueFromCString(const char *value_str, error.SetErrorString("unable to retrieve register info"); return false; } - error = reg_value.SetValueFromCString(reg_info, value_str); + error = reg_value.SetValueFromString(reg_info, llvm::StringRef(value_str)); if (error.Fail()) return false; if (reg_ctx->WriteRegister(reg_info, reg_value)) { |

