[llvm-commits] [llvm] r55182 - /llvm/trunk/include/llvm/ADT/FoldingSet.h
Dan Gohman
gohman at apple.com
Fri Aug 22 09:14:24 PDT 2008
Author: djg
Date: Fri Aug 22 11:14:23 2008
New Revision: 55182
URL: http://llvm.org/viewvc/llvm-project?rev=55182&view=rev
Log:
Add an empty() member to FoldingSet.
Modified:
llvm/trunk/include/llvm/ADT/FoldingSet.h
Modified: llvm/trunk/include/llvm/ADT/FoldingSet.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/FoldingSet.h?rev=55182&r1=55181&r2=55182&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/FoldingSet.h (original)
+++ llvm/trunk/include/llvm/ADT/FoldingSet.h Fri Aug 22 11:14:23 2008
@@ -164,6 +164,9 @@
/// 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:
More information about the llvm-commits
mailing list