mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Added a pointer hash function object for use in pointer maps.
llvm-svn: 316
This commit is contained in:
parent
09b706ba67
commit
d8415b8fbd
@ -19,4 +19,9 @@ template <> struct hash<string> {
|
||||
}
|
||||
};
|
||||
|
||||
// Provide a hash function for arbitrary pointers...
|
||||
template <class T> struct hash<T *> {
|
||||
inline size_t operator()(const T *Val) const { return (size_t)Val; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user