improve the APIs for creating struct and function types with no arguments/elements
[oota-llvm.git] / include / llvm / Support / RecyclingAllocator.h
index 071a61d9dc12aefc60a65db76d607742ad091f02..8e957f1b26453de00b74c4821e0439d495941120 100644 (file)
@@ -22,12 +22,13 @@ namespace llvm {
 /// RecyclingAllocator - This class wraps an Allocator, adding the
 /// functionality of recycling deleted objects.
 ///
-template<class AllocatorType, class T, class LargestT = T>
+template<class AllocatorType, class T,
+         size_t Size = sizeof(T), size_t Align = AlignOf<T>::Alignment>
 class RecyclingAllocator {
 private:
   /// Base - Implementation details.
   ///
-  Recycler<T, LargestT> Base;
+  Recycler<T, Size, Align> Base;
 
   /// Allocator - The wrapped allocator.
   ///