diff options
Diffstat (limited to 'source/DataFormatters/FormatCache.cpp')
-rw-r--r-- | source/DataFormatters/FormatCache.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/source/DataFormatters/FormatCache.cpp b/source/DataFormatters/FormatCache.cpp index af7b1c386..89d6ad49e 100644 --- a/source/DataFormatters/FormatCache.cpp +++ b/source/DataFormatters/FormatCache.cpp @@ -28,6 +28,13 @@ m_summary_sp(), m_synthetic_sp() {} +FormatCache::Entry::Entry (const Entry& rhs) : +m_summary_cached(rhs.m_summary_cached), +m_synthetic_cached(rhs.m_synthetic_cached), +m_summary_sp(rhs.m_summary_sp), +m_synthetic_sp(rhs.m_synthetic_sp) +{} + FormatCache::Entry::Entry (lldb::TypeSummaryImplSP summary_sp) : m_synthetic_cached(false), m_synthetic_sp() @@ -48,6 +55,18 @@ FormatCache::Entry::Entry (lldb::TypeSummaryImplSP summary_sp,lldb::SyntheticChi SetSynthetic (synthetic_sp); } +FormatCache::Entry& FormatCache::Entry::operator= (const Entry& rhs) +{ + if (this == &rhs) + return *this; + + m_summary_cached = rhs.m_summary_cached; + m_synthetic_cached = rhs.m_synthetic_cached; + m_summary_sp = rhs.m_summary_sp; + m_synthetic_sp = rhs.m_synthetic_sp; + return *this; +} + bool FormatCache::Entry::IsSummaryCached () { |