From 69e3bd10ecc36f7551b822a09d311fec08254cc0 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Mon, 17 Nov 2008 02:40:00 +0000 Subject: [PATCH] move partial template specialization to FoldingSet.h. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59434 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/FoldingSet.h | 6 ++++++ 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 16c811852a8..4c93711394e 100644 --- a/include/llvm/ADT/FoldingSet.h +++ b/include/llvm/ADT/FoldingSet.h @@ -449,6 +449,12 @@ template struct FoldingSetTrait { } }; +template struct FoldingSetTrait { + 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 9dde0dbbbf6..de6af7d5eb2 100644 --- a/include/llvm/ADT/ImmutableList.h +++ b/include/llvm/ADT/ImmutableList.h @@ -194,11 +194,6 @@ public: //===----------------------------------------------------------------------===// // Partially-specialized Traits. //===----------------------------------------------------------------------===// -template struct FoldingSetTrait { - static inline void Profile(const T* X, FoldingSetNodeID& ID) { - ID.AddPointer(X); - } -}; template struct DenseMapInfo; template struct DenseMapInfo > {