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/Expression/FunctionCaller.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/Expression/FunctionCaller.cpp')
-rw-r--r-- | lldb/source/Expression/FunctionCaller.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lldb/source/Expression/FunctionCaller.cpp b/lldb/source/Expression/FunctionCaller.cpp index 805afda2fba..f218ccb047a 100644 --- a/lldb/source/Expression/FunctionCaller.cpp +++ b/lldb/source/Expression/FunctionCaller.cpp @@ -1,5 +1,4 @@ -//===-- FunctionCaller.cpp ---------------------------------------*- C++ -//-*-===// +//===-- FunctionCaller.cpp ---------------------------------------*- C++-*-===// // // The LLVM Compiler Infrastructure // @@ -130,9 +129,9 @@ bool FunctionCaller::WriteFunctionArguments( // All the information to reconstruct the struct is provided by the // StructExtractor. if (!m_struct_valid) { - diagnostic_manager.PutCString(eDiagnosticSeverityError, - "Argument information was not correctly " - "parsed, so the function cannot be called."); + diagnostic_manager.PutString(eDiagnosticSeverityError, + "Argument information was not correctly " + "parsed, so the function cannot be called."); return false; } @@ -243,7 +242,7 @@ lldb::ThreadPlanSP FunctionCaller::GetThreadPlanToCallFunction( // FIXME: Use the errors Stream for better error reporting. Thread *thread = exe_ctx.GetThreadPtr(); if (thread == NULL) { - diagnostic_manager.PutCString( + diagnostic_manager.PutString( eDiagnosticSeverityError, "Can't call a function without a valid thread."); return NULL; |