From 3b207c66552297f35a3c8045ea979a0f53b08ce1 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Fri, 8 Jul 2016 18:39:36 +0000 Subject: Make IsSyntheticChildrenGenerated() virtual so that dynamic and synthetic values can refer back to their parents llvm-svn: 274901 --- lldb/source/Core/ValueObjectDynamicValue.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lldb/source/Core/ValueObjectDynamicValue.cpp') diff --git a/lldb/source/Core/ValueObjectDynamicValue.cpp b/lldb/source/Core/ValueObjectDynamicValue.cpp index 0ac86a68f19..65deba096d8 100644 --- a/lldb/source/Core/ValueObjectDynamicValue.cpp +++ b/lldb/source/Core/ValueObjectDynamicValue.cpp @@ -418,6 +418,22 @@ ValueObjectDynamicValue::GetPreferredDisplayLanguage () return m_preferred_display_language; } +bool +ValueObjectDynamicValue::IsSyntheticChildrenGenerated () +{ + if (m_parent) + return m_parent->IsSyntheticChildrenGenerated(); + return false; +} + +void +ValueObjectDynamicValue::SetSyntheticChildrenGenerated (bool b) +{ + if (m_parent) + m_parent->SetSyntheticChildrenGenerated(b); + this->ValueObject::SetSyntheticChildrenGenerated(b); +} + bool ValueObjectDynamicValue::GetDeclaration (Declaration &decl) { -- cgit v1.2.3