summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ValueObjectConstResultChild.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2015-11-09 19:27:34 +0000
committerEnrico Granata <egranata@apple.com>2015-11-09 19:27:34 +0000
commitdc62ffd37b8852e0a4d2bcd2b6373aa60ac9f4f1 (patch)
tree6e6e7c2acd1392344af26d921131b4a668f7cedb /lldb/source/Core/ValueObjectConstResultChild.cpp
parent776e59b0fe069b8dc4fa1d97f44c1191bcb46a6d (diff)
downloadbcm5719-llvm-dc62ffd37b8852e0a4d2bcd2b6373aa60ac9f4f1.tar.gz
bcm5719-llvm-dc62ffd37b8852e0a4d2bcd2b6373aa60ac9f4f1.zip
Add a way for source languages to "mark" ValueObjects with language-specific flags
In this way, when a language needs to tell itself things that are not bound to a type but to a value (imagine a base-class relation, this is not about the type, but about the ValueObject), it can do so in a clean and general fashion The interpretation of the values of the flags is, of course, up to the language that owns the value (the value object's runtime language, that is) llvm-svn: 252503
Diffstat (limited to 'lldb/source/Core/ValueObjectConstResultChild.cpp')
-rw-r--r--lldb/source/Core/ValueObjectConstResultChild.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/Core/ValueObjectConstResultChild.cpp b/lldb/source/Core/ValueObjectConstResultChild.cpp
index 002063e6b58..c93aedc2260 100644
--- a/lldb/source/Core/ValueObjectConstResultChild.cpp
+++ b/lldb/source/Core/ValueObjectConstResultChild.cpp
@@ -27,7 +27,8 @@ ValueObjectConstResultChild::ValueObjectConstResultChild
uint32_t bitfield_bit_offset,
bool is_base_class,
bool is_deref_of_parent,
- lldb::addr_t live_address
+ lldb::addr_t live_address,
+ uint64_t language_flags
) :
ValueObjectChild (parent,
compiler_type,
@@ -38,7 +39,8 @@ ValueObjectConstResultChild::ValueObjectConstResultChild
bitfield_bit_offset,
is_base_class,
is_deref_of_parent,
- eAddressTypeLoad),
+ eAddressTypeLoad,
+ language_flags),
m_impl(this, live_address)
{
m_name = name;
OpenPOWER on IntegriCloud