Commit add95990 authored by Reid Kleckner's avatar Reid Kleckner
Browse files

[Support] Explicitly instantiate BumpPtrAllocatorImpl

Most clients only ever use the default BumpPtrAllocator.
parent 0eeddf1a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
+2 −0
Original line number Diff line number Diff line
@@ -15,6 +15,8 @@

namespace llvm {

template class BumpPtrAllocatorImpl<>;

namespace detail {

void printBumpPtrAllocatorStats(unsigned NumSlabs, size_t BytesAllocated,