summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-06-18 07:02:53 +0000
committerPavel Labath <pavel@labath.sk>2019-06-18 07:02:53 +0000
commitafb17daedf958ae72597a739324033fd67f2e658 (patch)
tree5d35c65bad4b8470abe612c1df56b3f40a9edc7f
parent69daf4a72daffe1308aef3ec21e340a44d33197f (diff)
downloadbcm5719-llvm-afb17daedf958ae72597a739324033fd67f2e658.tar.gz
bcm5719-llvm-afb17daedf958ae72597a739324033fd67f2e658.zip
Fix windows build for r363357
MSVC has trouble referencing the protected Compare class from from the friend Entry operator<. Just delete that operator, as it's used only once. llvm-svn: 363653
-rw-r--r--lldb/include/lldb/Core/UniqueCStringMap.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/lldb/include/lldb/Core/UniqueCStringMap.h b/lldb/include/lldb/Core/UniqueCStringMap.h
index a20e1b6ef05..9949bd45f4f 100644
--- a/lldb/include/lldb/Core/UniqueCStringMap.h
+++ b/lldb/include/lldb/Core/UniqueCStringMap.h
@@ -28,10 +28,6 @@ public:
struct Entry {
Entry(ConstString cstr, const T &v) : cstring(cstr), value(v) {}
- friend bool operator<(const Entry &lhs, const Entry &rhs) {
- return Compare()(lhs, rhs);
- }
-
ConstString cstring;
T value;
};
@@ -165,7 +161,7 @@ public:
// my_map.Append (UniqueCStringMap::Entry(GetName(...), GetValue(...)));
// }
// my_map.Sort();
- void Sort() { llvm::sort(m_map.begin(), m_map.end()); }
+ void Sort() { llvm::sort(m_map.begin(), m_map.end(), Compare()); }
// Since we are using a vector to contain our items it will always double its
// memory consumption as things are added to the vector, so if you intend to
OpenPOWER on IntegriCloud