Alexey Lapshin 868654e549 [DWARFLinkerParallel] Add StringPool class.
This patch is extracted from D96035. It adds StringPool class.
StringPool allows to store strings in parallel. It also allows
to have string data associated with the concrete string.

Reviewed By: JDevlieghere

Differential Revision: https://reviews.llvm.org/D140841
2023-03-31 12:11:43 +02:00

13 lines
536 B
C++

//=== StringPool.cpp ------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#include "llvm/DWARFLinkerParallel/StringPool.h"
thread_local llvm::BumpPtrAllocator
llvm::dwarflinker_parallel::PerThreadStringAllocator::ThreadLocalAllocator;