Remove redundant template partial specilization.
authorZhongxing Xu <xuzhongxing@gmail.com>
Mon, 16 May 2011 12:42:22 +0000 (12:42 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Mon, 16 May 2011 12:42:22 +0000 (12:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131402 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/FoldingSet.h

index 52e043430f2a9f3001268b067576d60c7fc7766d..d2e0b8f91b2cc4e65a087780af17647a66dbae36 100644 (file)
@@ -671,17 +671,10 @@ public:
 // 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