diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-16 04:23:49 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-16 04:23:49 +0000 |
commit | f5b55475b3697f49113c9de331fbf9ad40bda1e6 (patch) | |
tree | 603ef2500b71e536869161f87983bb4284f67e8b /include/llvm/ADT | |
parent | 6093b36f47b31819b9e25b22c26adad31562c7c6 (diff) | |
download | external_llvm-f5b55475b3697f49113c9de331fbf9ad40bda1e6.zip external_llvm-f5b55475b3697f49113c9de331fbf9ad40bda1e6.tar.gz external_llvm-f5b55475b3697f49113c9de331fbf9ad40bda1e6.tar.bz2 |
Add partial specialization of FoldingSetTrait for ImmutableList.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59387 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r-- | include/llvm/ADT/ImmutableList.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/ADT/ImmutableList.h b/include/llvm/ADT/ImmutableList.h index de6af7d..9dde0db 100644 --- a/include/llvm/ADT/ImmutableList.h +++ b/include/llvm/ADT/ImmutableList.h @@ -194,6 +194,11 @@ public: //===----------------------------------------------------------------------===// // Partially-specialized Traits. //===----------------------------------------------------------------------===// +template<typename T> struct FoldingSetTrait<const T*> { + static inline void Profile(const T* X, FoldingSetNodeID& ID) { + ID.AddPointer(X); + } +}; template<typename T> struct DenseMapInfo; template<typename T> struct DenseMapInfo<ImmutableList<T> > { |