summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ValueObjectDynamicValue.cpp
diff options
context:
space:
mode:
authorSiva Chandra <sivachandra@google.com>2015-08-18 17:56:06 +0000
committerSiva Chandra <sivachandra@google.com>2015-08-18 17:56:06 +0000
commit9851b1f62bddc6869a1693a2e335f67539804541 (patch)
tree1c5f0ba556d2ba3929017972766dfdd1d25c169e /lldb/source/Core/ValueObjectDynamicValue.cpp
parent7adc3a2b0e467c909f1489992da5f4c467c0d10f (diff)
downloadbcm5719-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/Core/ValueObjectDynamicValue.cpp')
-rw-r--r--lldb/source/Core/ValueObjectDynamicValue.cpp9
1 files changed, 9 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);
+}
OpenPOWER on IntegriCloud