[Lldb-commits] [PATCH] D151384: [lldb] Override GetVariable in ValueObjectSynthetic (NFC)

Dave Lee via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed May 24 15:40:10 PDT 2023

kastiglione created this revision.
kastiglione added a reviewer: jingham.
Herald added a project: All.
kastiglione requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

Make `GetVariable` a passthrough function the the underlying value object in `ValueObjectSynthetic`.

  rG LLVM Github Monorepo



Index: lldb/include/lldb/Core/ValueObjectSyntheticFilter.h
--- lldb/include/lldb/Core/ValueObjectSyntheticFilter.h
+++ lldb/include/lldb/Core/ValueObjectSyntheticFilter.h
@@ -82,6 +82,10 @@
                                   : lldb::eNoDynamicValues);
+  lldb::VariableSP GetVariable() override {
+    return m_parent != nullptr ? m_parent->GetVariable() : nullptr;
+  }
   ValueObject *GetParent() override {
     return ((m_parent != nullptr) ? m_parent->GetParent() : nullptr);

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151384.525358.patch
Type: text/x-patch
Size: 563 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230524/414db218/attachment.bin>

More information about the lldb-commits mailing list