summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ValueObjectList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Core/ValueObjectList.cpp')
-rw-r--r--lldb/source/Core/ValueObjectList.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lldb/source/Core/ValueObjectList.cpp b/lldb/source/Core/ValueObjectList.cpp
index 8913d4da18d..f732a698ee5 100644
--- a/lldb/source/Core/ValueObjectList.cpp
+++ b/lldb/source/Core/ValueObjectList.cpp
@@ -51,6 +51,16 @@ ValueObjectList::Append (const ValueObjectSP &val_obj_sp)
m_value_objects.push_back(val_obj_sp);
}
+void
+ValueObjectList::Append (const ValueObjectList &valobj_list)
+{
+ std::copy(valobj_list.m_value_objects.begin(), // source begin
+ valobj_list.m_value_objects.end(), // source end
+ back_inserter(m_value_objects)); // destination
+
+}
+
+
uint32_t
ValueObjectList::GetSize() const
{
OpenPOWER on IntegriCloud