forked from OSchip/llvm-project
Added member function "size()" to FoldingSet to return the number of
nodes in the FoldingSet. llvm-svn: 43531
This commit is contained in:
parent
82ae5f255f
commit
4f4c3f9fd5
|
@ -202,7 +202,10 @@ public:
|
||||||
/// it is not already in the folding set. InsertPos must be obtained from
|
/// it is not already in the folding set. InsertPos must be obtained from
|
||||||
/// FindNodeOrInsertPos.
|
/// FindNodeOrInsertPos.
|
||||||
void InsertNode(Node *N, void *InsertPos);
|
void InsertNode(Node *N, void *InsertPos);
|
||||||
|
|
||||||
|
/// size - Returns the number of nodes in the folding set.
|
||||||
|
unsigned size() const { return NumNodes; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
/// GrowHashTable - Double the size of the hash table and rehash everything.
|
/// GrowHashTable - Double the size of the hash table and rehash everything.
|
||||||
|
|
Loading…
Reference in New Issue