mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Temporarily revert r93581. It was causing failures in the ExecutionEngine tests
on the build bots. llvm-svn: 93606
This commit is contained in:
parent
ff1a508835
commit
921cd93e85
@ -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
|
||||
|
@ -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() { }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user