diff options
Diffstat (limited to 'contrib/llvm-project/lldb/source/Utility/ConstString.cpp')
| -rw-r--r-- | contrib/llvm-project/lldb/source/Utility/ConstString.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/contrib/llvm-project/lldb/source/Utility/ConstString.cpp b/contrib/llvm-project/lldb/source/Utility/ConstString.cpp index 46b7ab259383..e90bb929bb81 100644 --- a/contrib/llvm-project/lldb/source/Utility/ConstString.cpp +++ b/contrib/llvm-project/lldb/source/Utility/ConstString.cpp @@ -18,7 +18,6 @@ #include "llvm/Support/RWMutex.h" #include "llvm/Support/Threading.h" -#include <algorithm> #include <array> #include <utility> @@ -59,23 +58,6 @@ public: return nullptr; } - bool SetMangledCounterparts(const char *key_ccstr, const char *value_ccstr) { - if (key_ccstr != nullptr && value_ccstr != nullptr) { - { - const uint8_t h = hash(llvm::StringRef(key_ccstr)); - llvm::sys::SmartScopedWriter<false> wlock(m_string_pools[h].m_mutex); - GetStringMapEntryFromKeyData(key_ccstr).setValue(value_ccstr); - } - { - const uint8_t h = hash(llvm::StringRef(value_ccstr)); - llvm::sys::SmartScopedWriter<false> wlock(m_string_pools[h].m_mutex); - GetStringMapEntryFromKeyData(value_ccstr).setValue(key_ccstr); - } - return true; - } - return false; - } - const char *GetConstCString(const char *cstr) { if (cstr != nullptr) return GetConstCStringWithLength(cstr, strlen(cstr)); |
