Implement TLSLDM.
[oota-llvm.git] / include / llvm / ADT / SmallSet.h
index 75e8c64885a92754dbd5b6ac4e80f52145ec518f..d03f1bef15b11d98e8e4bb30c1fede7aa676c564 100644 (file)
@@ -30,7 +30,7 @@ namespace llvm {
 template <typename T, unsigned N>
 class SmallSet {
   /// Use a SmallVector to hold the elements here (even though it will never
-  /// reach it's 'large' stage) to avoid calling the default ctors of elements
+  /// reach its 'large' stage) to avoid calling the default ctors of elements
   /// we will never use.
   SmallVector<T, N> Vector;
   std::set<T> Set;
@@ -76,6 +76,12 @@ public:
     return true;
   }
 
+  template <typename IterT>
+  void insert(IterT I, IterT E) {
+    for (; I != E; ++I)
+      insert(*I);
+  }
+  
   bool erase(const T &V) {
     if (!isSmall())
       return Set.erase(V);