[llvm-dev] Inline SmallVectorBase::grow_pod?

David Farler via llvm-dev llvm-dev at lists.llvm.org
Tue Apr 12 17:59:30 PDT 2016


Hello llvm-dev,

I'm working on some out-of-process reflection support for Swift and I'd like to switch over some of my memory management to context-based with a bump-pointer allocator. I hit a linker error that `grow_pod` was missing. Eventually, some of this code will get linked into the Swift runtime and we are trying to avoid directly linking LLVM into the runtime to keep the size down, so I can't link in Support.

I see that this method was pulled out of line for https://llvm.org/bugs/show_bug.cgi?id=3758 back in 2009. Is there a chance we can consider pulling it back into a header? It's kind of a shame to have to have to link Support just to use BumpPointerAllocator.

David


More information about the llvm-dev mailing list