aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2008-11-17 02:40:00 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2008-11-17 02:40:00 +0000
commit59403814b36b3308a1636612368e6ec945889ff0 (patch)
tree53ed4d817467164929d5dd206d0645344ea348e9 /include
parent59fc626007185115f2ea3bc3e604b63910312e4f (diff)
downloadexternal_llvm-59403814b36b3308a1636612368e6ec945889ff0.zip
external_llvm-59403814b36b3308a1636612368e6ec945889ff0.tar.gz
external_llvm-59403814b36b3308a1636612368e6ec945889ff0.tar.bz2
move partial template specialization to FoldingSet.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59434 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ADT/FoldingSet.h6
-rw-r--r--include/llvm/ADT/ImmutableList.h5
2 files changed, 6 insertions, 5 deletions
diff --git a/include/llvm/ADT/FoldingSet.h b/include/llvm/ADT/FoldingSet.h
index 16c8118..4c93711 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 9dde0db..de6af7d 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> > {