Temporarily revert r93581. It was causing failures in the ExecutionEngine tests

on the build bots.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93606 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2010-01-16 01:06:58 +00:00
parent 8570f594ad
commit c5b7b19677
2 changed files with 4 additions and 6 deletions

View File

@ -128,11 +128,11 @@ class BumpPtrAllocator {
/// one.
void DeallocateSlabs(MemSlab *Slab);
static MallocSlabAllocator &GetDefaultSlabAllocator();
static MallocSlabAllocator DefaultSlabAllocator;
public:
BumpPtrAllocator(size_t size = 4096, size_t threshold = 4096,
SlabAllocator &allocator = GetDefaultSlabAllocator());
SlabAllocator &allocator = DefaultSlabAllocator);
~BumpPtrAllocator();
/// Reset - Deallocate all but the current slab and reset the current pointer

View File

@ -142,10 +142,8 @@ void BumpPtrAllocator::PrintStats() const {
<< " (includes alignment, etc)\n";
}
MallocSlabAllocator &BumpPtrAllocator::GetDefaultSlabAllocator() {
static MallocSlabAllocator DefaultSlabAllocator;
return DefaultSlabAllocator;
}
MallocSlabAllocator BumpPtrAllocator::DefaultSlabAllocator =
MallocSlabAllocator();
SlabAllocator::~SlabAllocator() { }