diff options
author | Siva Chandra <sivachandra@google.com> | 2015-08-18 17:56:06 +0000 |
---|---|---|
committer | Siva Chandra <sivachandra@google.com> | 2015-08-18 17:56:06 +0000 |
commit | 9851b1f62bddc6869a1693a2e335f67539804541 (patch) | |
tree | 1c5f0ba556d2ba3929017972766dfdd1d25c169e /lldb/source | |
parent | 7adc3a2b0e467c909f1489992da5f4c467c0d10f (diff) | |
download | bcm5719-llvm-9851b1f62bddc6869a1693a2e335f67539804541.tar.gz bcm5719-llvm-9851b1f62bddc6869a1693a2e335f67539804541.zip |
[ValueObjectSynthetic and ValueObjectDynamicValue] Override GetDeclaration
Summary:
Returns the declaration of the parent (non-synthetic or static) value.
Reviewers: granata.enrico, clayborg
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D12092
llvm-svn: 245319
Diffstat (limited to 'lldb/source')
-rw-r--r-- | lldb/source/Core/ValueObjectDynamicValue.cpp | 9 | ||||
-rw-r--r-- | lldb/source/Core/ValueObjectSyntheticFilter.cpp | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/lldb/source/Core/ValueObjectDynamicValue.cpp b/lldb/source/Core/ValueObjectDynamicValue.cpp index 80c16c84ca4..0085a33c375 100644 --- a/lldb/source/Core/ValueObjectDynamicValue.cpp +++ b/lldb/source/Core/ValueObjectDynamicValue.cpp @@ -421,3 +421,12 @@ ValueObjectDynamicValue::SetData (DataExtractor &data, Error &error) SetNeedsUpdate(); return ret_val; } + +bool +ValueObjectDynamicValue::GetDeclaration (Declaration &decl) +{ + if (m_parent) + return m_parent->GetDeclaration(decl); + + return ValueObject::GetDeclaration(decl); +} diff --git a/lldb/source/Core/ValueObjectSyntheticFilter.cpp b/lldb/source/Core/ValueObjectSyntheticFilter.cpp index 2a20ae3f150..ee8587cd89b 100644 --- a/lldb/source/Core/ValueObjectSyntheticFilter.cpp +++ b/lldb/source/Core/ValueObjectSyntheticFilter.cpp @@ -314,3 +314,12 @@ ValueObjectSynthetic::SetFormat (lldb::Format format) this->ValueObject::SetFormat(format); this->ClearUserVisibleData(eClearUserVisibleDataItemsAll); } + +bool +ValueObjectSynthetic::GetDeclaration (Declaration &decl) +{ + if (m_parent) + return m_parent->GetDeclaration(decl); + + return ValueObject::GetDeclaration(decl); +} |