summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/DataBufferHeap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Core/DataBufferHeap.cpp')
-rw-r--r--lldb/source/Core/DataBufferHeap.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/source/Core/DataBufferHeap.cpp b/lldb/source/Core/DataBufferHeap.cpp
index 3692aa90a5b..74893767d14 100644
--- a/lldb/source/Core/DataBufferHeap.cpp
+++ b/lldb/source/Core/DataBufferHeap.cpp
@@ -101,5 +101,9 @@ DataBufferHeap::CopyData (const void *src, uint64_t src_len)
m_data.clear();
}
-
-
+void
+DataBufferHeap::Clear()
+{
+ buffer_t empty;
+ m_data.swap(empty);
+}
OpenPOWER on IntegriCloud