diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2020-02-14 21:24:03 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2020-02-14 21:24:03 +0000 |
| commit | d75c7debad4509ece98792074e64b8a650a27bdb (patch) | |
| tree | f8d77975739b43bf7ffef0612579168cb9ec9474 /lldb/source/DataFormatters/FormatCache.cpp | |
| parent | 9c2f6c4bb805c7ac08c8925c96e429fcc322725e (diff) | |
Vendor import of llvm-project branch release/10.xvendor/llvm-project/llvmorg-10.0.0-rc2-0-g90c78073f73
llvmorg-10.0.0-rc2-0-g90c78073f73.
Notes
svn path=/vendor/llvm-project/release-10.x/; revision=357937
svn path=/vendor/llvm-project/llvmorg-10.0.0-rc2-0-g90c78073f73/; revision=357938; tag=vendor/llvm-project/llvmorg-10.0.0-rc2-0-g90c78073f73
Diffstat (limited to 'lldb/source/DataFormatters/FormatCache.cpp')
| -rw-r--r-- | lldb/source/DataFormatters/FormatCache.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/DataFormatters/FormatCache.cpp b/lldb/source/DataFormatters/FormatCache.cpp index 231e7ed0c0a0..99f140705446 100644 --- a/lldb/source/DataFormatters/FormatCache.cpp +++ b/lldb/source/DataFormatters/FormatCache.cpp @@ -69,6 +69,8 @@ FormatCache::Entry &FormatCache::GetEntry(ConstString type) { return m_map[type]; } +namespace lldb_private { + template<> bool FormatCache::Entry::IsCached<lldb::TypeFormatImplSP>() { return IsFormatCached(); } @@ -79,6 +81,8 @@ template<> bool FormatCache::Entry::IsCached<lldb::SyntheticChildrenSP>() { return IsSyntheticCached(); } +} // namespace lldb_private + template <typename ImplSP> bool FormatCache::Get(ConstString type, ImplSP &format_impl_sp) { std::lock_guard<std::recursive_mutex> guard(m_mutex); |
