diff options
| author | Dean Michael Berris <dberris@google.com> | 2017-08-29 12:21:45 +0000 |
|---|---|---|
| committer | Dean Michael Berris <dberris@google.com> | 2017-08-29 12:21:45 +0000 |
| commit | eca980396e28c365cea957144d4d9260cb173ded (patch) | |
| tree | 26a0bf9b7f92aa77329838ce47b7a8021df5c559 /llvm/tools/llvm-rc/ResourceScriptParser.cpp | |
| parent | 9203afcf0dba13c60f016ad698aef1d88b3639d9 (diff) | |
| download | llvm-eca980396e28c365cea957144d4d9260cb173ded.zip llvm-eca980396e28c365cea957144d4d9260cb173ded.tar.gz llvm-eca980396e28c365cea957144d4d9260cb173ded.tar.bz2 | |
[XRay][compiler-rt][NFC] Refactor global TLS variables behind an accessor function.
Summary:
This change hides all the initialization of thread_local variables used
by the XRay FDR mode implementation behind a function call. This makes
initialization of thread-local data to be done lazily, instead of
eagerly when they're done as globals. It also gives us an isolation
mechanism if/when we want to change the TLS implementation from using
the C++ thread_local keyword, for something more ad-hoc (potentialy
using pthread directly) on some platforms or set-ups where we cannot use
the C++ thread_local variables.
Reviewers: kpw, eizan
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D37248
llvm-svn: 311997
Diffstat (limited to 'llvm/tools/llvm-rc/ResourceScriptParser.cpp')
0 files changed, 0 insertions, 0 deletions
