Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 497b7bb

Browse files
author
Zachary Turner
committed
Remove some code churn.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211068 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent aedb552 commit 497b7bb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

include/llvm/Support/Threading.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@
1818
#include "llvm/Support/Mutex.h"
1919

2020
namespace llvm {
21-
22-
/// llvm_get_global_lock() - returns the llvm global lock object.
21+
/// llvm_get_global_lock - returns the llvm global lock object.
2322
sys::Mutex &llvm_get_global_lock();
2423

25-
/// llvm_is_multithreaded() - returns true if LLVM is compiled with support
24+
/// llvm_is_multithreaded - returns true if LLVM is compiled with support
2625
/// for multiple threads, and false otherwise.
2726
bool llvm_is_multithreaded();
2827

lib/Support/ManagedStatic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void ManagedStaticBase::RegisterManagedStatic(void *(*Creator)(),
2424
void (*Deleter)(void*)) const {
2525
assert(Creator);
2626
if (llvm_is_multithreaded()) {
27-
llvm::MutexGuard Lock(llvm_get_global_lock());
27+
llvm::MutexGuard Lock(llvm::llvm_get_global_lock());
2828

2929
if (!Ptr) {
3030
void* tmp = Creator();

0 commit comments

Comments
 (0)