If we see UTF-8 BOM sequence at the beginning of a response file, we shall
[oota-llvm.git] / lib / Support / Allocator.cpp
index 9d9873981eb42d016d1384bf8d550ed4616b1ea5..7c306b2370e6c30fc3e03ee6dd2ac697c228a42e 100644 (file)
 
 namespace llvm {
 
-SlabAllocator::~SlabAllocator() { }
-
-MallocSlabAllocator::~MallocSlabAllocator() { }
-
-void *MallocSlabAllocator::Allocate(size_t Size) {
-  return Allocator.Allocate(Size, 0);
-}
-
-void MallocSlabAllocator::Deallocate(void *Slab, size_t Size) {
-  Allocator.Deallocate(Slab);
-}
+namespace detail {
 
 void printBumpPtrAllocatorStats(unsigned NumSlabs, size_t BytesAllocated,
                                 size_t TotalMemory) {
@@ -42,6 +32,8 @@ void printBumpPtrAllocatorStats(unsigned NumSlabs, size_t BytesAllocated,
          << " (includes alignment, etc)\n";
 }
 
+} // End namespace detail.
+
 void PrintRecyclerStats(size_t Size,
                         size_t Align,
                         size_t FreeListSize) {