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:
1501cdb
)
Add an empty() member to FoldingSet.
author
Dan Gohman
<gohman@apple.com>
Fri, 22 Aug 2008 16:14:23 +0000
(16:14 +0000)
committer
Dan Gohman
<gohman@apple.com>
Fri, 22 Aug 2008 16:14:23 +0000
(16:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55182
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/FoldingSet.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/FoldingSet.h
b/include/llvm/ADT/FoldingSet.h
index f34a62d4f4c6be1076dc3752d13402212105aa36..287127243e76e69ef08de6735cf9a9507baa2d90 100644
(file)
--- a/
include/llvm/ADT/FoldingSet.h
+++ b/
include/llvm/ADT/FoldingSet.h
@@
-164,6
+164,9
@@
public:
/// size - Returns the number of nodes in the folding set.
unsigned size() const { return NumNodes; }
+
+ /// empty - Returns true if there are no nodes in the folding set.
+ bool empty() const { return NumNodes == 0; }
private: