aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Basic/FileManagerTest.cpp
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2017-08-02 04:51:40 +0000
committerDean Michael Berris <dberris@google.com>2017-08-02 04:51:40 +0000
commit9952d95921f0d609e81aed7e5c7ddbb80a4bc132 (patch)
tree3822df2063be9e865c8ff3eb41af6760d89f3ea2 /clang/unittests/Basic/FileManagerTest.cpp
parentc2f73b7fae270fab9e13edf8e24c82ada272558a (diff)
downloadllvm-9952d95921f0d609e81aed7e5c7ddbb80a4bc132.zip
llvm-9952d95921f0d609e81aed7e5c7ddbb80a4bc132.tar.gz
llvm-9952d95921f0d609e81aed7e5c7ddbb80a4bc132.tar.bz2
[XRay][compiler-rt] Remove use of std::mutex and std::shared_ptr from global scope.
Summary: This change attempts to remove all the dependencies we have on std::mutex and any std::shared_ptr construction in global variables. We instead use raw pointers to these objects, and construct them on the heap. In cases where it's possible, we lazily initialize these pointers. While we do not have a replacement for std::shared_ptr yet in compiler-rt, we use this work-around to avoid having to statically initialize the objects as globals. Subsequent changes should allow us to completely remove our dependency on std::shared_ptr and instead have our own implementation of the std::shared_ptr and std::weak_ptr semantics (or completely rewrite the implementaton to not need these standard-library provided abstractions). Reviewers: dblaikie, kpw, pelikan Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D36078 llvm-svn: 309792
Diffstat (limited to 'clang/unittests/Basic/FileManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions