diff options
author | Enrico Granata <egranata@apple.com> | 2016-07-08 18:39:36 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2016-07-08 18:39:36 +0000 |
commit | 3b207c66552297f35a3c8045ea979a0f53b08ce1 (patch) | |
tree | 424bcb97bbc03172d8aae7ff8484268cb866c60d /lldb/source/Core/ValueObjectDynamicValue.cpp | |
parent | 0561bd5b47b44c0f1f5773e150a2b31f3cf61638 (diff) | |
download | bcm5719-llvm-3b207c66552297f35a3c8045ea979a0f53b08ce1.tar.gz bcm5719-llvm-3b207c66552297f35a3c8045ea979a0f53b08ce1.zip |
Make IsSyntheticChildrenGenerated() virtual so that dynamic and synthetic values can refer back to their parents
llvm-svn: 274901
Diffstat (limited to 'lldb/source/Core/ValueObjectDynamicValue.cpp')
-rw-r--r-- | lldb/source/Core/ValueObjectDynamicValue.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
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 @@ -419,6 +419,22 @@ ValueObjectDynamicValue::GetPreferredDisplayLanguage () } 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) { if (m_parent) |