From 2ef5d4cd6ab2e8f57bba88cc6ef0e3132e784e63 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Sat, 15 Nov 2008 09:26:02 +0000 Subject: [PATCH] Add Profile method to ImmutableList. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59362 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/ImmutableList.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.34.1