summaryrefslogtreecommitdiffstats
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
commita5055a03c6fc6d17bb27bbbe0beb71b05b1568a4 (patch)
tree7caaaebeca0b44fdfacbbb49d65ce7544d9257c1
parent4425d8e37b150f009bf10198be57a45a2e448732 (diff)
downloadbcm5719-llvm-a5055a03c6fc6d17bb27bbbe0beb71b05b1568a4.tar.gz
bcm5719-llvm-a5055a03c6fc6d17bb27bbbe0beb71b05b1568a4.zip
move partial template specialization to FoldingSet.h.
llvm-svn: 59434
-rw-r--r--llvm/include/llvm/ADT/FoldingSet.h6
-rw-r--r--llvm/include/llvm/ADT/ImmutableList.h5
2 files changed, 6 insertions, 5 deletions
diff --git a/llvm/include/llvm/ADT/FoldingSet.h b/llvm/include/llvm/ADT/FoldingSet.h
index 16c811852a8..4c93711394e 100644
--- a/llvm/include/llvm/ADT/FoldingSet.h
+++ b/llvm/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/llvm/include/llvm/ADT/ImmutableList.h b/llvm/include/llvm/ADT/ImmutableList.h
index 9dde0dbbbf6..de6af7d5eb2 100644
--- a/llvm/include/llvm/ADT/ImmutableList.h
+++ b/llvm/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> > {
OpenPOWER on IntegriCloud