diff options
author | Zachary Turner <zturner@google.com> | 2016-11-12 19:12:56 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-11-12 19:12:56 +0000 |
commit | e2411fabdaf01d883d77cf3f8456367a9dc685ff (patch) | |
tree | 118b9b3531a39255e9174d88899514d599524a53 /lldb/source/Plugins/ExpressionParser/Go/GoUserExpression.cpp | |
parent | 43400b4c069bf882c6c1e881d65d6a4c865d4dc0 (diff) | |
download | bcm5719-llvm-e2411fabdaf01d883d77cf3f8456367a9dc685ff.tar.gz bcm5719-llvm-e2411fabdaf01d883d77cf3f8456367a9dc685ff.zip |
Make DiagnosticsManager functions take StringRefs.
llvm-svn: 286730
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Go/GoUserExpression.cpp')
-rw-r--r-- | lldb/source/Plugins/ExpressionParser/Go/GoUserExpression.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Go/GoUserExpression.cpp b/lldb/source/Plugins/ExpressionParser/Go/GoUserExpression.cpp index ff20be1d22e..30cc4aa828e 100644 --- a/lldb/source/Plugins/ExpressionParser/Go/GoUserExpression.cpp +++ b/lldb/source/Plugins/ExpressionParser/Go/GoUserExpression.cpp @@ -216,7 +216,7 @@ bool GoUserExpression::Parse(DiagnosticManager &diagnostic_manager, return true; const char *error_cstr = m_interpreter->error().AsCString(); if (error_cstr && error_cstr[0]) - diagnostic_manager.PutCString(eDiagnosticSeverityError, error_cstr); + diagnostic_manager.PutString(eDiagnosticSeverityError, error_cstr); else diagnostic_manager.Printf(eDiagnosticSeverityError, "expression can't be interpreted or run"); @@ -245,8 +245,8 @@ GoUserExpression::DoExecute(DiagnosticManager &diagnostic_manager, log->Printf("== [GoUserExpression::Evaluate] Expression may not run, " "but is not constant =="); - diagnostic_manager.PutCString(eDiagnosticSeverityError, - "expression needed to run but couldn't"); + diagnostic_manager.PutString(eDiagnosticSeverityError, + "expression needed to run but couldn't"); return execution_results; } @@ -260,10 +260,10 @@ GoUserExpression::DoExecute(DiagnosticManager &diagnostic_manager, if (!result_val_sp) { const char *error_cstr = err.AsCString(); if (error_cstr && error_cstr[0]) - diagnostic_manager.PutCString(eDiagnosticSeverityError, error_cstr); + diagnostic_manager.PutString(eDiagnosticSeverityError, error_cstr); else - diagnostic_manager.PutCString(eDiagnosticSeverityError, - "expression can't be interpreted or run"); + diagnostic_manager.PutString(eDiagnosticSeverityError, + "expression can't be interpreted or run"); return lldb::eExpressionDiscarded; } result.reset(new ExpressionVariable(ExpressionVariable::eKindGo)); |