diff options
| author | Raphael Isemann <teemperor@gmail.com> | 2019-08-12 14:11:37 +0000 |
|---|---|---|
| committer | Raphael Isemann <teemperor@gmail.com> | 2019-08-12 14:11:37 +0000 |
| commit | 8940687c6dcbf439f8437ca8f0cdd7158d87c3dd (patch) | |
| tree | a698da3ac13950026985cf36cb70f6336e0636af /lldb/source/Expression | |
| parent | f927b34a148b27b24f37f062d5a0620b76430ade (diff) | |
| download | bcm5719-llvm-8940687c6dcbf439f8437ca8f0cdd7158d87c3dd.tar.gz bcm5719-llvm-8940687c6dcbf439f8437ca8f0cdd7158d87c3dd.zip | |
[lldb] Remove undocumented return value from DiagnosticManager::PutString
The returned value is currently unused. It also seems to imply that
it somehow represents 'printf-style' the number of characters/bytes
written to some output stream (which is incorrect, as we only know
the actual size of the written message when we have rendered it,
e.g. via GetString and DiagnosticManagers have no associated
output stream).
llvm-svn: 368577
Diffstat (limited to 'lldb/source/Expression')
| -rw-r--r-- | lldb/source/Expression/DiagnosticManager.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lldb/source/Expression/DiagnosticManager.cpp b/lldb/source/Expression/DiagnosticManager.cpp index b258ede9255..5333e3e545b 100644 --- a/lldb/source/Expression/DiagnosticManager.cpp +++ b/lldb/source/Expression/DiagnosticManager.cpp @@ -70,10 +70,9 @@ size_t DiagnosticManager::Printf(DiagnosticSeverity severity, return result; } -size_t DiagnosticManager::PutString(DiagnosticSeverity severity, - llvm::StringRef str) { +void DiagnosticManager::PutString(DiagnosticSeverity severity, + llvm::StringRef str) { if (str.empty()) - return 0; + return; AddDiagnostic(str, severity, eDiagnosticOriginLLDB); - return str.size(); } |

