[Support] Explicitly instantiate BumpPtrAllocatorImpl

Most clients only ever use the default BumpPtrAllocator.
This commit is contained in:
Reid Kleckner 2020-01-18 09:20:20 -08:00
parent 0eeddf1ac5
commit add9599050
2 changed files with 4 additions and 0 deletions

View File

@ -434,6 +434,8 @@ private:
template <typename T> friend class SpecificBumpPtrAllocator;
};
extern template class BumpPtrAllocatorImpl<>;
/// The standard BumpPtrAllocator which just uses the default template
/// parameters.
typedef BumpPtrAllocatorImpl<> BumpPtrAllocator;

View File

@ -15,6 +15,8 @@
namespace llvm {
template class BumpPtrAllocatorImpl<>;
namespace detail {
void printBumpPtrAllocatorStats(unsigned NumSlabs, size_t BytesAllocated,