[llvm-commits] CVS: llvm/include/Support/MallocAllocator.h

Chris Lattner lattner at cs.uiuc.edu
Fri Nov 7 09:21:01 PST 2003


Changes in directory llvm/include/Support:

MallocAllocator.h updated: 1.1 -> 1.2

---
Log message:

Add some ctors for this allocator


---
Diffs of the changes:  (+4 -0)

Index: llvm/include/Support/MallocAllocator.h
diff -u llvm/include/Support/MallocAllocator.h:1.1 llvm/include/Support/MallocAllocator.h:1.2
--- llvm/include/Support/MallocAllocator.h:1.1	Tue Nov  4 16:38:28 2003
+++ llvm/include/Support/MallocAllocator.h	Fri Nov  7 09:20:06 2003
@@ -36,6 +36,10 @@
     typedef MallocAllocator<U> other;
   };
 
+  template<typename R>
+  MallocAllocator(const MallocAllocator<R> &) {}
+  MallocAllocator() {}
+
   pointer address(reference x) const { return &x; }
   const_pointer address(const_reference x) const { return &x; }
   size_type max_size() const { return ~0 / sizeof(T); }





More information about the llvm-commits mailing list