[llvm-commits] [llvm] r131402 - /llvm/trunk/include/llvm/ADT/FoldingSet.h

Zhongxing Xu xuzhongxing at gmail.com
Mon May 16 05:42:22 PDT 2011


Author: zhongxingxu
Date: Mon May 16 07:42:22 2011
New Revision: 131402

URL: http://llvm.org/viewvc/llvm-project?rev=131402&view=rev
Log:
Remove redundant template partial specilization.

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

Modified: llvm/trunk/include/llvm/ADT/FoldingSet.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/FoldingSet.h?rev=131402&r1=131401&r2=131402&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/FoldingSet.h (original)
+++ llvm/trunk/include/llvm/ADT/FoldingSet.h Mon May 16 07:42:22 2011
@@ -671,17 +671,10 @@
 // Partial specializations of FoldingSetTrait.
 
 template<typename T> struct FoldingSetTrait<T*> {
-  static inline void Profile(const T *X, FoldingSetNodeID &ID) {
+  static inline void Profile(T *X, FoldingSetNodeID &ID) {
     ID.AddPointer(X);
   }
 };
-
-template<typename T> struct FoldingSetTrait<const T*> {
-  static inline void Profile(const T *X, FoldingSetNodeID &ID) {
-    ID.AddPointer(X);
-  }
-};
-
 } // End of namespace llvm.
 
 #endif





More information about the llvm-commits mailing list