
This patch hides thread specific handling under LLVM_ENABLE_THREADS guard. It also removes usages of thread_local variables, since it has a weak support on some platforms. Instead, the patch uses single mutex for locking allocator. That may be replaced with more effective allocator later. f.e. D142318 Differential Revision: https://reviews.llvm.org/D147649
10 lines
419 B
C++
10 lines
419 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"
|