diff options
| author | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-15 09:26:02 +0000 |
|---|---|---|
| committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-15 09:26:02 +0000 |
| commit | cfbc7cef618233234333533676ec190bd5ef676c (patch) | |
| tree | dd232921f66e9f6e8dbab6194a47aaf5e5a47a52 | |
| parent | da8d2873ed9128622c07f093c2bc99c3558ffbfa (diff) | |
| download | bcm5719-llvm-cfbc7cef618233234333533676ec190bd5ef676c.tar.gz bcm5719-llvm-cfbc7cef618233234333533676ec190bd5ef676c.zip | |
Add Profile method to ImmutableList.
llvm-svn: 59362
| -rw-r--r-- | llvm/include/llvm/ADT/ImmutableList.h | 4 |
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> |

