projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c529168
)
Add Profile method to ImmutableList.
author
Zhongxing Xu
<xuzhongxing@gmail.com>
Sat, 15 Nov 2008 09:26:02 +0000
(09:26 +0000)
committer
Zhongxing Xu
<xuzhongxing@gmail.com>
Sat, 15 Nov 2008 09:26:02 +0000
(09:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59362
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/ImmutableList.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/ImmutableList.h
b/include/llvm/ADT/ImmutableList.h
index baf86daa360ceb67cc91b4dc842160f6a9af05fe..21b07e742da88b02959ce64d1ac309e6caa2ae66 100644
(file)
--- 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>