mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
Remove some code churn.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211068 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aedb5523d2
commit
497b7bb3e3
@ -18,11 +18,10 @@
|
|||||||
#include "llvm/Support/Mutex.h"
|
#include "llvm/Support/Mutex.h"
|
||||||
|
|
||||||
namespace llvm {
|
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();
|
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.
|
/// for multiple threads, and false otherwise.
|
||||||
bool llvm_is_multithreaded();
|
bool llvm_is_multithreaded();
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ void ManagedStaticBase::RegisterManagedStatic(void *(*Creator)(),
|
|||||||
void (*Deleter)(void*)) const {
|
void (*Deleter)(void*)) const {
|
||||||
assert(Creator);
|
assert(Creator);
|
||||||
if (llvm_is_multithreaded()) {
|
if (llvm_is_multithreaded()) {
|
||||||
llvm::MutexGuard Lock(llvm_get_global_lock());
|
llvm::MutexGuard Lock(llvm::llvm_get_global_lock());
|
||||||
|
|
||||||
if (!Ptr) {
|
if (!Ptr) {
|
||||||
void* tmp = Creator();
|
void* tmp = Creator();
|
||||||
|
Loading…
Reference in New Issue
Block a user