[lld-macho] Avoid using bump-alloc in TrieBuider
authorVy Nguyen <vyng@google.com>
Mon, 14 Mar 2022 21:22:24 +0000 (17:22 -0400)
committerJez Ng <jezng@fb.com>
Mon, 14 Mar 2022 21:22:53 +0000 (17:22 -0400)
commite049a87f04cff8e81b4177097a6b2fdf37c7b148
tree27394e9af97848236e83f2c91148e86513a4b7b5
parentedd3e705bb33e9e563d388df0af75e0e65262fac
[lld-macho] Avoid using bump-alloc in TrieBuider

The code can be used in multi-threads and the allocator is not thread safe.

fixes PR/54378

Reviewed By: int3, #lld-macho

Differential Revision: https://reviews.llvm.org/D121638
lld/MachO/ExportTrie.cpp
lld/MachO/ExportTrie.h