Make DynamicLibrary sortable.
git-svn-id: http://root.cern.ch/svn/root/trunk@47322 27541ba8-7e3a-0410-8455-c3a389f83636
This commit is contained in:
14
patches/llvm-include-llvm-Support-DynamicLibrary.h
Normal file
14
patches/llvm-include-llvm-Support-DynamicLibrary.h
Normal 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
|
Reference in New Issue
Block a user