diff options
-rw-r--r-- | include/llvm/ADT/FoldingSet.h | 6 | ||||
-rw-r--r-- | include/llvm/ADT/ImmutableList.h | 5 |
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> > { |