1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Revert "[Support] Fix time trace multi threaded support with LLVM_ENABLE_THREADS=OFF"

This reverts commit 2bbcf156acc157377e814fbb1828a9fe89367ea2.

This was failing on systems which use __thread such as
http://lab.llvm.org:8011/builders/clang-atom-d525-fedora-rel/builds/30851
This commit is contained in:
Russell Gallop 2019-12-17 08:59:05 +00:00
parent 734e50c750
commit 0e7ed2369b
2 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@
namespace llvm {
struct TimeTraceProfiler;
extern LLVM_THREAD_LOCAL std::unique_ptr<TimeTraceProfiler>
extern thread_local std::unique_ptr<TimeTraceProfiler>
TimeTraceProfilerInstance;
/// Initialize the time trace profiler.

View File

@ -33,7 +33,8 @@ std::vector<std::unique_ptr<llvm::TimeTraceProfiler>>
namespace llvm {
LLVM_THREAD_LOCAL std::unique_ptr<TimeTraceProfiler> TimeTraceProfilerInstance;
thread_local std::unique_ptr<TimeTraceProfiler> TimeTraceProfilerInstance =
nullptr;
typedef duration<steady_clock::rep, steady_clock::period> DurationType;
typedef time_point<steady_clock> TimePointType;