commit | 3a143ce2e79a7a7a12981f2d13ea771ff31ff888 | [log] [tgz] |
---|---|---|
author | Chris Bieneman <beanz@apple.com> | Mon Oct 13 22:37:25 2014 +0000 |
committer | Chris Bieneman <beanz@apple.com> | Mon Oct 13 22:37:25 2014 +0000 |
tree | 99570e77a335a1a73f01af60ab7a037805f780f6 | |
parent | 5db6cf4884eee68c28df5aa7243e75236814a7a3 [diff] |
Removing the static destructor from ManagedStatic.cpp by controlling the allocation and de-allocation of the mutex. This patch adds a new llvm_call_once function which is used by the ManagedStatic implementation to safely initialize a global to avoid static construction and destruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219638 91177308-0d34-0410-b5e6-96231b3b80d8