forked from OSchip/llvm-project
Added a pointer hash function object for use in pointer maps.
llvm-svn: 316
This commit is contained in:
parent
0f32957dbb
commit
56324d34f7
|
@ -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…
Reference in New Issue