From: Zhongxing Xu Date: Sat, 15 Nov 2008 09:26:02 +0000 (+0000) Subject: Add Profile method to ImmutableList. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2ef5d4cd6ab2e8f57bba88cc6ef0e3132e784e63;p=oota-llvm.git Add Profile method to ImmutableList. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59362 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/ImmutableList.h b/include/llvm/ADT/ImmutableList.h index baf86daa360..21b07e742da 100644 --- a/include/llvm/ADT/ImmutableList.h +++ b/include/llvm/ADT/ImmutableList.h @@ -123,6 +123,10 @@ public: ImmutableList getTail() { return X ? X->getTail() : 0; } + + void Profile(FoldingSetNodeID& ID) const { + ID.AddPointer(X); + } }; template