summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ValueObjectConstResultChild.cpp
diff options
context:
space:
mode:
authorSiva Chandra <sivachandra@google.com>2015-07-16 01:47:12 +0000
committerSiva Chandra <sivachandra@google.com>2015-07-16 01:47:12 +0000
commitf8877efc8ba64360179b85af9fd019aae549d1a7 (patch)
tree162796467b673f6dd152707c7c66e46229144016 /lldb/source/Core/ValueObjectConstResultChild.cpp
parent938bd6fc963af5028a31b315b982ac390786af1b (diff)
downloadbcm5719-llvm-f8877efc8ba64360179b85af9fd019aae549d1a7.tar.gz
bcm5719-llvm-f8877efc8ba64360179b85af9fd019aae549d1a7.zip
Add a class ValueObjectConstResultCast.
Summary: Other changes around the main change include: 1. Add a method Cast to ValueObjectConstResult, ValueObjectConstResultImpl and ValueObjectConstResultChild. 2. Add an argument |live_address| of type lldb::addr_t to the constructor of ValueObjectConstResultChild. This is passed on to the backing ValueObjectConstResultImpl object constructor so that the address of the child value can be calculated properly. Reviewers: granata.enrico, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11203 llvm-svn: 242374
Diffstat (limited to 'lldb/source/Core/ValueObjectConstResultChild.cpp')
-rw-r--r--lldb/source/Core/ValueObjectConstResultChild.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/lldb/source/Core/ValueObjectConstResultChild.cpp b/lldb/source/Core/ValueObjectConstResultChild.cpp
index 64425ea5096..8bf49e8a5a6 100644
--- a/lldb/source/Core/ValueObjectConstResultChild.cpp
+++ b/lldb/source/Core/ValueObjectConstResultChild.cpp
@@ -26,7 +26,8 @@ ValueObjectConstResultChild::ValueObjectConstResultChild
uint32_t bitfield_bit_size,
uint32_t bitfield_bit_offset,
bool is_base_class,
- bool is_deref_of_parent
+ bool is_deref_of_parent,
+ lldb::addr_t live_address
) :
ValueObjectChild (parent,
clang_type,
@@ -38,7 +39,7 @@ ValueObjectConstResultChild::ValueObjectConstResultChild
is_base_class,
is_deref_of_parent,
eAddressTypeLoad),
- m_impl(this)
+ m_impl(this, live_address)
{
m_name = name;
}
@@ -78,3 +79,9 @@ ValueObjectConstResultChild::GetPointeeData (DataExtractor& data,
{
return m_impl.GetPointeeData(data, item_idx, item_count);
}
+
+lldb::ValueObjectSP
+ValueObjectConstResultChild::Cast (const ClangASTType &clang_ast_type)
+{
+ return m_impl.Cast(clang_ast_type);
+}
OpenPOWER on IntegriCloud