Make DynamicLibrary sortable.

git-svn-id: http://root.cern.ch/svn/root/trunk@47322 27541ba8-7e3a-0410-8455-c3a389f83636
This commit is contained in:
Axel Naumann
2012-11-15 16:39:23 +00:00
parent 8616cc7bea
commit 956567cf9e

View File

@ -0,0 +1,14 @@
Index: include/llvm/Support/DynamicLibrary.h
===================================================================
--- include/llvm/Support/DynamicLibrary.h (revision 47319)
+++ include/llvm/Support/DynamicLibrary.h (working copy)
@@ -96,6 +96,9 @@ namespace sys {
/// libraries.
/// @brief Add searchable symbol/value pair.
static void AddSymbol(StringRef symbolName, void *symbolValue);
+
+ bool operator<(const DynamicLibrary& Other) const { return Data < Other.Data; }
+ bool operator==(const DynamicLibrary& Other) const { return Data == Other.Data; }
};
} // End sys namespace