[llvm] r211068 - Remove some code churn.
Zachary Turner
zturner at google.com
Mon Jun 16 15:40:29 PDT 2014
Author: zturner
Date: Mon Jun 16 17:40:29 2014
New Revision: 211068
URL: http://llvm.org/viewvc/llvm-project?rev=211068&view=rev
Log:
Remove some code churn.
Modified:
llvm/trunk/include/llvm/Support/Threading.h
llvm/trunk/lib/Support/ManagedStatic.cpp
Modified: llvm/trunk/include/llvm/Support/Threading.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Threading.h?rev=211068&r1=211067&r2=211068&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Threading.h (original)
+++ llvm/trunk/include/llvm/Support/Threading.h Mon Jun 16 17:40:29 2014
@@ -18,11 +18,10 @@
#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();
Modified: llvm/trunk/lib/Support/ManagedStatic.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/ManagedStatic.cpp?rev=211068&r1=211067&r2=211068&view=diff
==============================================================================
--- llvm/trunk/lib/Support/ManagedStatic.cpp (original)
+++ llvm/trunk/lib/Support/ManagedStatic.cpp Mon Jun 16 17:40:29 2014
@@ -24,7 +24,7 @@ void ManagedStaticBase::RegisterManagedS
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();
More information about the llvm-commits
mailing list