From: Zhongxing Xu Date: Mon, 17 Nov 2008 02:40:00 +0000 (+0000) Subject: move partial template specialization to FoldingSet.h. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=69e3bd10ecc36f7551b822a09d311fec08254cc0;p=oota-llvm.git move partial template specialization to FoldingSet.h. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59434 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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 > {