[Support] Fix time trace multi threaded support with LLVM_ENABLE_THREADS=OFF
authorRussell Gallop <russell.gallop@sony.com>
Mon, 16 Dec 2019 15:01:22 +0000 (15:01 +0000)
committerRussell Gallop <russell.gallop@sony.com>
Tue, 17 Dec 2019 08:42:56 +0000 (08:42 +0000)
commit2bbcf156acc157377e814fbb1828a9fe89367ea2
treebdcfd01f98983c421f0b75422e5ce368366887af
parentccfab8e4596e59c8eea6b3610cd163c5d0312193
[Support] Fix time trace multi threaded support with LLVM_ENABLE_THREADS=OFF

Following on from 8ddcd1dc26ba, which added the support. As pointed out
on D71059 this does not build on some systems with LLVM_ENABLE_THREADS=OFF.

Differential Revision: https://reviews.llvm.org/D71548
llvm/include/llvm/Support/TimeProfiler.h
llvm/lib/Support/TimeProfiler.cpp