diff options
-rw-r--r-- | include/llvm/ADT/FoldingSet.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/ADT/FoldingSet.h b/include/llvm/ADT/FoldingSet.h index c567895594..2e74f2c8c1 100644 --- a/include/llvm/ADT/FoldingSet.h +++ b/include/llvm/ADT/FoldingSet.h @@ -202,7 +202,10 @@ public: /// 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. |