summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/ImmutableList.h
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2008-11-15 09:26:02 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2008-11-15 09:26:02 +0000
commit2ef5d4cd6ab2e8f57bba88cc6ef0e3132e784e63 (patch)
treede20f13388bf2c10bbcf373e079c9abeaa004f93 /include/llvm/ADT/ImmutableList.h
parentc529168f29a9821806af8c7096fdcfbec06343d3 (diff)
downloadllvm-2ef5d4cd6ab2e8f57bba88cc6ef0e3132e784e63.tar.gz
llvm-2ef5d4cd6ab2e8f57bba88cc6ef0e3132e784e63.tar.bz2
llvm-2ef5d4cd6ab2e8f57bba88cc6ef0e3132e784e63.tar.xz
Add Profile method to ImmutableList.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59362 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/ImmutableList.h')
-rw-r--r--include/llvm/ADT/ImmutableList.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/ADT/ImmutableList.h b/include/llvm/ADT/ImmutableList.h
index baf86daa36..21b07e742d 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 <typename T>