[llvm-commits] [llvm] r59434 - in /llvm/trunk/include/llvm/ADT: FoldingSet.h ImmutableList.h

Zhongxing Xu xuzhongxing at gmail.com
Sun Nov 16 18:40:00 PST 2008


Author: zhongxingxu
Date: Sun Nov 16 20:40:00 2008
New Revision: 59434

URL: http://llvm.org/viewvc/llvm-project?rev=59434&view=rev
Log:
move partial template specialization to FoldingSet.h.

Modified:
    llvm/trunk/include/llvm/ADT/FoldingSet.h
    llvm/trunk/include/llvm/ADT/ImmutableList.h

Modified: llvm/trunk/include/llvm/ADT/FoldingSet.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/FoldingSet.h?rev=59434&r1=59433&r2=59434&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/FoldingSet.h (original)
+++ llvm/trunk/include/llvm/ADT/FoldingSet.h Sun Nov 16 20:40:00 2008
@@ -449,6 +449,12 @@
   }
 };
 
+template<typename T> struct FoldingSetTrait<const T*> {
+  static inline void Profile(const T* X, FoldingSetNodeID& ID) {
+    ID.AddPointer(X);
+  }
+};
+
 } // End of namespace llvm.
 
 

Modified: llvm/trunk/include/llvm/ADT/ImmutableList.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ImmutableList.h?rev=59434&r1=59433&r2=59434&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/ImmutableList.h (original)
+++ llvm/trunk/include/llvm/ADT/ImmutableList.h Sun Nov 16 20:40:00 2008
@@ -194,11 +194,6 @@
 //===----------------------------------------------------------------------===//
 // 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> > {





More information about the llvm-commits mailing list