Make IsSyntheticChildrenGenerated() virtual so that dynamic and synthetic values can refer back to their parents

llvm-svn: 274901
This commit is contained in:
Enrico Granata
2016-07-08 18:39:36 +00:00
parent 0561bd5b47
commit 3b207c6655
5 changed files with 46 additions and 2 deletions

View File

@@ -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)
{