mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 10:58:11 +08:00
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
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user