summaryrefslogtreecommitdiffstats
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
commitcfbc7cef618233234333533676ec190bd5ef676c (patch)
treedd232921f66e9f6e8dbab6194a47aaf5e5a47a52
parentda8d2873ed9128622c07f093c2bc99c3558ffbfa (diff)
downloadbcm5719-llvm-cfbc7cef618233234333533676ec190bd5ef676c.tar.gz
bcm5719-llvm-cfbc7cef618233234333533676ec190bd5ef676c.zip
Add Profile method to ImmutableList.
llvm-svn: 59362
-rw-r--r--llvm/include/llvm/ADT/ImmutableList.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/ADT/ImmutableList.h b/llvm/include/llvm/ADT/ImmutableList.h
index baf86daa360..21b07e742da 100644
--- a/llvm/include/llvm/ADT/ImmutableList.h
+++ b/llvm/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>
OpenPOWER on IntegriCloud