From f5b55475b3697f49113c9de331fbf9ad40bda1e6 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Sun, 16 Nov 2008 04:23:49 +0000 Subject: Add partial specialization of FoldingSetTrait for ImmutableList. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59387 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/ImmutableList.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/llvm/ADT/ImmutableList.h b/include/llvm/ADT/ImmutableList.h index de6af7d..9dde0db 100644 --- a/include/llvm/ADT/ImmutableList.h +++ b/include/llvm/ADT/ImmutableList.h @@ -194,6 +194,11 @@ public: //===----------------------------------------------------------------------===// // Partially-specialized Traits. //===----------------------------------------------------------------------===// +template struct FoldingSetTrait { + static inline void Profile(const T* X, FoldingSetNodeID& ID) { + ID.AddPointer(X); + } +}; template struct DenseMapInfo; template struct DenseMapInfo > { -- cgit v1.1