Re-enables the new vector select in the bitcode reader, by modifying the
[oota-llvm.git] / include / llvm / Support / Allocator.h
index eab6d332c409d5d62fc0eff1a46a58923f989c18..bc3653503caf8715ccc7fce2f0f136e789151f84 100644 (file)
@@ -58,6 +58,11 @@ public:
     return static_cast<T*>(Allocate(sizeof(T),AlignOf<T>::Alignment));
   }
   
+  template <typename T>
+  T *Allocate(size_t Num) { 
+    return static_cast<T*>(Allocate(Num * sizeof(T), AlignOf<T>::Alignment));
+  }
+  
   void Deallocate(void * /*Ptr*/) {}
 
   void PrintStats() const;