Commit Graph

4 Commits

Author SHA1 Message Date
Rafael Espindola 5c9e8f5e52 Replace GAlloc with a template function.
This patch replaces GAlloc<ELFT>::<sometype>.Allocate() with
alloc<sometype<ELFT>>().

Patch by Rui!

llvm-svn: 285748
2016-11-01 21:06:40 +00:00
Rui Ueyama c802fc2623 Attempt to fix a buildbot really this time.
llvm-svn: 285489
2016-10-29 01:28:06 +00:00
Rui Ueyama 8586b78692 Attempt to fix a buildbot.
llvm-svn: 285453
2016-10-28 21:09:56 +00:00
Rui Ueyama 55518e7dd8 Consolidate BumpPtrAllocators.
Previously, we have a lot of BumpPtrAllocators, but all these
allocators virtually have the same lifetime because they are
not freed until the linker finishes its job. This patch aggregates
them into a single allocator.

Differential revision: https://reviews.llvm.org/D26042

llvm-svn: 285452
2016-10-28 20:57:25 +00:00