[Lldb-commits] [lldb] draft: [lldb] Upgrade ValueObject::GetData to return llvm::Expected (PR #130516)

Julius Alexandre via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 10 19:18:07 PDT 2025


================
@@ -46,19 +46,27 @@ bool TypeFormatImpl_Format::FormatObject(ValueObject *valobj,
     Value &value(valobj->GetValue());
     const Value::ContextType context_type = value.GetContextType();
     ExecutionContext exe_ctx(valobj->GetExecutionContextRef());
-    DataExtractor data;
 
+    auto data_or_err = valobj->GetData();
----------------
wizardengineer wrote:

Yeah, it seems to be fine. I don't think there should be any side-effects from this refactor.

https://github.com/llvm/llvm-project/pull/130516


More information about the lldb-commits mailing list