From: Zhongxing Xu Date: Sun, 16 Nov 2008 04:23:49 +0000 (+0000) Subject: Add partial specialization of FoldingSetTrait for ImmutableList. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f5b55475b3697f49113c9de331fbf9ad40bda1e6;p=oota-llvm.git Add partial specialization of FoldingSetTrait for ImmutableList. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59387 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/ImmutableList.h b/include/llvm/ADT/ImmutableList.h index de6af7d5eb2..9dde0dbbbf6 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 > {