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`. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D151384 Files: lldb/include/lldb/Core/ValueObjectSyntheticFilter.h 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); }
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); }
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits