diff options
author | Zachary Turner <zturner@google.com> | 2016-11-13 03:29:46 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-11-13 03:29:46 +0000 |
commit | aa5611f56df92ca78df874a3b751f906044460c1 (patch) | |
tree | 2ea0cd20f0ff488617c617e0c8edc130304b79d6 /lldb/source/Plugins/ExpressionParser/Go/GoUserExpression.cpp | |
parent | 7a120c8b3df60a5da382f8f7baeaccdfa928bd5b (diff) | |
download | bcm5719-llvm-aa5611f56df92ca78df874a3b751f906044460c1.tar.gz bcm5719-llvm-aa5611f56df92ca78df874a3b751f906044460c1.zip |
Change ValueObject creation functions to take StringRefs.
llvm-svn: 286744
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Go/GoUserExpression.cpp')
-rw-r--r-- | lldb/source/Plugins/ExpressionParser/Go/GoUserExpression.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Go/GoUserExpression.cpp b/lldb/source/Plugins/ExpressionParser/Go/GoUserExpression.cpp index 30cc4aa828e..a448da683e3 100644 --- a/lldb/source/Plugins/ExpressionParser/Go/GoUserExpression.cpp +++ b/lldb/source/Plugins/ExpressionParser/Go/GoUserExpression.cpp @@ -509,7 +509,8 @@ ValueObjectSP GoUserExpression::GoInterpreter::VisitBasicLit( DataExtractor data(buf, order, addr_size); CompilerType type = LookupType(target, ConstString("int64")); - return ValueObject::CreateValueObjectFromData(nullptr, data, m_exe_ctx, type); + return ValueObject::CreateValueObjectFromData(llvm::StringRef(), data, + m_exe_ctx, type); } ValueObjectSP GoUserExpression::GoInterpreter::VisitIndexExpr( @@ -565,7 +566,7 @@ GoUserExpression::GoInterpreter::VisitUnaryExpr(const GoASTUnaryExpr *e) { case GoLexer::OP_AMP: { CompilerType type = x->GetCompilerType().GetPointerType(); uint64_t address = x->GetAddressOf(); - return ValueObject::CreateValueObjectFromAddress(nullptr, address, + return ValueObject::CreateValueObjectFromAddress(llvm::StringRef(), address, m_exe_ctx, type); } case GoLexer::OP_PLUS: |