Document the return value of SmallSet insert.
[oota-llvm.git] / include / llvm / ADT / DenseSet.h
index 00bcf64a2fc7c246514b33753f05a308fb363419..d699ad51ada4906c6e693ad12b8cd503d07dcc00 100644 (file)
@@ -28,10 +28,15 @@ class DenseSet {
   MapTy TheMap;
 public:
   DenseSet(const DenseSet &Other) : TheMap(Other.TheMap) {}
-  explicit DenseSet(unsigned NumInitBuckets = 64) : TheMap(NumInitBuckets) {}
+  explicit DenseSet(unsigned NumInitBuckets = 0) : TheMap(NumInitBuckets) {}
 
   bool empty() const { return TheMap.empty(); }
   unsigned size() const { return TheMap.size(); }
+  size_t getMemorySize() const { return TheMap.getMemorySize(); }
+
+  /// Grow the DenseSet so that it has at least Size buckets. Will not shrink
+  /// the Size of the set.
+  void resize(size_t Size) { TheMap.resize(Size); }
 
   void clear() {
     TheMap.clear();