[BumpPtrAllocator] Move DefaultSlabAllocator to a member of BumpPtrAllocator, instead...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 28 Aug 2013 01:02:21 +0000 (01:02 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 28 Aug 2013 01:02:21 +0000 (01:02 +0000)
commit7f9a887d3f64d1227b911c9180767d95dbba4c10
treef87a029ca26678f9d5da5111781ba1f121220f62
parenta796d90c0ed7ebd5d58fced43c60afc2e9bf6225
[BumpPtrAllocator] Move DefaultSlabAllocator to a member of BumpPtrAllocator, instead of a static variable.

The problem with having DefaultSlabAllocator being a global static is that it is undefined if BumpPtrAllocator
will be usable during global initialization because it is not guaranteed that DefaultSlabAllocator will be
initialized before BumpPtrAllocator is created and used.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189433 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Allocator.h
lib/Support/Allocator.cpp