llvm.org GIT mirror llvm / 55beb6d
Add an empty() member to FoldingSet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55182 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 11 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
163163
164164 /// size - Returns the number of nodes in the folding set.
165165 unsigned size() const { return NumNodes; }
166
167 /// empty - Returns true if there are no nodes in the folding set.
168 bool empty() const { return NumNodes == 0; }
166169
167170 private:
168171