diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-17 02:40:00 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-17 02:40:00 +0000 |
commit | 69e3bd10ecc36f7551b822a09d311fec08254cc0 (patch) | |
tree | 53ed4d817467164929d5dd206d0645344ea348e9 | |
parent | 28088d3c049017a131aa7b07201c6e19c0227cef (diff) | |
download | llvm-69e3bd10ecc36f7551b822a09d311fec08254cc0.tar.gz llvm-69e3bd10ecc36f7551b822a09d311fec08254cc0.tar.bz2 llvm-69e3bd10ecc36f7551b822a09d311fec08254cc0.tar.xz |
move partial template specialization to FoldingSet.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59434 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/FoldingSet.h | 6 | ||||
-rw-r--r-- | include/llvm/ADT/ImmutableList.h | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/include/llvm/ADT/FoldingSet.h b/include/llvm/ADT/FoldingSet.h index 16c811852a..4c93711394 100644 --- a/include/llvm/ADT/FoldingSet.h +++ b/include/llvm/ADT/FoldingSet.h @@ -449,6 +449,12 @@ template<typename T> struct FoldingSetTrait<T*> { } }; +template<typename T> struct FoldingSetTrait<const T*> { + static inline void Profile(const T* X, FoldingSetNodeID& ID) { + ID.AddPointer(X); + } +}; + } // End of namespace llvm. diff --git a/include/llvm/ADT/ImmutableList.h b/include/llvm/ADT/ImmutableList.h index 9dde0dbbbf..de6af7d5eb 100644 --- a/include/llvm/ADT/ImmutableList.h +++ b/include/llvm/ADT/ImmutableList.h @@ -194,11 +194,6 @@ 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> > { |