diff options
author | Adrian Prantl <aprantl@apple.com> | 2024-06-17 14:29:01 -0700 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2024-06-20 10:32:06 -0700 |
commit | d1bc75c0bce141b94f9afadfde4e784760735ec0 (patch) | |
tree | 03017088ee5f5862a92de9630b95182e8f26bb70 /lldb/source/Commands/CommandObjectMemory.cpp | |
parent | 6bc71cdd32de0add80d620b1342b5549efff363a (diff) | |
download | llvm-d1bc75c0bce141b94f9afadfde4e784760735ec0.zip llvm-d1bc75c0bce141b94f9afadfde4e784760735ec0.tar.gz llvm-d1bc75c0bce141b94f9afadfde4e784760735ec0.tar.bz2 |
Convert ValueObject::Dump() to return llvm::Error() (NFCish)
This change by itself has no measurable effect on the LLDB
testsuite. I'm making it in preparation for threading through more
errors in the Swift language plugin.
Diffstat (limited to 'lldb/source/Commands/CommandObjectMemory.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectMemory.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectMemory.cpp b/lldb/source/Commands/CommandObjectMemory.cpp index 1c13484..137b1ad 100644 --- a/lldb/source/Commands/CommandObjectMemory.cpp +++ b/lldb/source/Commands/CommandObjectMemory.cpp @@ -815,7 +815,10 @@ protected: DumpValueObjectOptions options(m_varobj_options.GetAsDumpOptions( eLanguageRuntimeDescriptionDisplayVerbosityFull, format)); - valobj_sp->Dump(*output_stream_p, options); + if (llvm::Error error = valobj_sp->Dump(*output_stream_p, options)) { + result.AppendError(toString(std::move(error))); + return; + } } else { result.AppendErrorWithFormat( "failed to create a value object for: (%s) %s\n", |