summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/FoldingSet.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-08-23 00:42:16 +0000
committerDan Gohman <gohman@apple.com>2008-08-23 00:42:16 +0000
commit535de1a8c14fdfeb3912d3192accb58d9aa1e9e7 (patch)
tree9d3788d9079d0f364e8fee711ba3262aebdd97b9 /include/llvm/ADT/FoldingSet.h
parent169b5ed46e969ad2b04efeac54bd24a316c14e05 (diff)
downloadllvm-535de1a8c14fdfeb3912d3192accb58d9aa1e9e7.tar.gz
llvm-535de1a8c14fdfeb3912d3192accb58d9aa1e9e7.tar.bz2
llvm-535de1a8c14fdfeb3912d3192accb58d9aa1e9e7.tar.xz
Add a clear() method to FoldingSet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55210 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/FoldingSet.h')
-rw-r--r--include/llvm/ADT/FoldingSet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/ADT/FoldingSet.h b/include/llvm/ADT/FoldingSet.h
index 287127243e..dbf10aa63e 100644
--- a/include/llvm/ADT/FoldingSet.h
+++ b/include/llvm/ADT/FoldingSet.h
@@ -143,6 +143,9 @@ public:
void SetNextInBucket(void *N) { NextInFoldingSetBucket = N; }
};
+ /// clear - Remove all nodes from the folding set.
+ void clear();
+
/// RemoveNode - Remove a node from the folding set, returning true if one
/// was removed or false if the node was not in the folding set.
bool RemoveNode(Node *N);