Remove some code churn.
authorZachary Turner <zturner@google.com>
Mon, 16 Jun 2014 22:40:29 +0000 (22:40 +0000)
committerZachary Turner <zturner@google.com>
Mon, 16 Jun 2014 22:40:29 +0000 (22:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211068 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Threading.h
lib/Support/ManagedStatic.cpp

index e33b52f90716af94f3cf1656db7bdb49430e4a35..bfcf1be37d34e226e9e3f04b6152b46faef1d6a2 100644 (file)
 #include "llvm/Support/Mutex.h"
 
 namespace llvm {
-
-  /// llvm_get_global_lock() - returns the llvm global lock object.
+  /// llvm_get_global_lock - returns the llvm global lock object.
   sys::Mutex &llvm_get_global_lock();
 
-  /// llvm_is_multithreaded() - returns true if LLVM is compiled with support
+  /// llvm_is_multithreaded - returns true if LLVM is compiled with support
   /// for multiple threads, and false otherwise.
   bool llvm_is_multithreaded();
 
index 76f86e398de6621129a6f126e89b14deb5aef441..1117190888baa58e8d82055fb756abbe6560bbe5 100644 (file)
@@ -24,7 +24,7 @@ void ManagedStaticBase::RegisterManagedStatic(void *(*Creator)(),
                                               void (*Deleter)(void*)) const {
   assert(Creator);
   if (llvm_is_multithreaded()) {
-    llvm::MutexGuard Lock(llvm_get_global_lock());
+    llvm::MutexGuard Lock(llvm::llvm_get_global_lock());
 
     if (!Ptr) {
       void* tmp = Creator();