Use thread-safe statics to avoid a static constructor here. This isn't thread-safe...
authorOwen Anderson <resistor@mac.com>
Thu, 18 Nov 2010 18:49:05 +0000 (18:49 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 18 Nov 2010 18:49:05 +0000 (18:49 +0000)
commit27cb5e612ae280a0084a2c608cc8b13786431b7d
tree67cc1b38d4132b9cfc8cb04e231ea76a08fce152
parentbd77d399c4cdc2440abde96b2861b149fae4f33e
Use thread-safe statics to avoid a static constructor here.  This isn't thread-safe on MSVC, but we don't
support threaded LLVM there anyways.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119718 91177308-0d34-0410-b5e6-96231b3b80d8
lib/System/DynamicLibrary.cpp