Author: kremenek Date: Tue Oct 30 18:35:55 2007 New Revision: 43531 URL: http://llvm.org/viewvc/llvm-project?rev=43531&view=rev Log: Added member function "size()" to FoldingSet to return the number of nodes in the 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=43531&r1=43530&r2=43531&view=diff ============================================================================== --- llvm/trunk/include/llvm/ADT/FoldingSet.h (original) +++ llvm/trunk/include/llvm/ADT/FoldingSet.h Tue Oct 30 18:35:55 2007 @@ -202,7 +202,10 @@ /// it is not already in the folding set. InsertPos must be obtained from /// FindNodeOrInsertPos. void InsertNode(Node *N, void *InsertPos); - + + /// size - Returns the number of nodes in the folding set. + unsigned size() const { return NumNodes; } + private: /// GrowHashTable - Double the size of the hash table and rehash everything. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits