Make GetValueForVariableExpression use StringRef.

Also significantly reduced the indentation level by use of
early returns, and simplified some of the logic by using
StringRef functions such as consumeInteger() and getAsInteger()
instead of strtoll, etc.

llvm-svn: 287189
This commit is contained in:
Zachary Turner 2016-11-17 01:37:52 +00:00
parent 4aa8753c81
commit 24bd317871
2 changed files with 527 additions and 550 deletions

View File

@ -313,7 +313,7 @@ public:
/// A shared pointer to the ValueObject described by var_expr.
//------------------------------------------------------------------
lldb::ValueObjectSP GetValueForVariableExpressionPath(
const char *var_expr, lldb::DynamicValueType use_dynamic,
llvm::StringRef var_expr, lldb::DynamicValueType use_dynamic,
uint32_t options, lldb::VariableSP &var_sp, Error &error);
//------------------------------------------------------------------

File diff suppressed because it is too large Load Diff