mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Have scoped mutexes take referenes instead of pointers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74931 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -97,7 +97,7 @@ static ExFunc lookupFunction(const Function *F) {
|
||||
ExtName += getTypeID(FT->getContainedType(i));
|
||||
ExtName += "_" + F->getName();
|
||||
|
||||
sys::ScopedLock Writer(&*FunctionsLock);
|
||||
sys::ScopedLock Writer(*FunctionsLock);
|
||||
ExFunc FnPtr = FuncNames[ExtName];
|
||||
if (FnPtr == 0)
|
||||
FnPtr = FuncNames["lle_X_"+F->getName()];
|
||||
@ -539,7 +539,7 @@ GenericValue lle_X_fprintf(const FunctionType *FT,
|
||||
|
||||
|
||||
void Interpreter::initializeExternalFunctions() {
|
||||
sys::ScopedLock Writer(&*FunctionsLock);
|
||||
sys::ScopedLock Writer(*FunctionsLock);
|
||||
FuncNames["lle_X_atexit"] = lle_X_atexit;
|
||||
FuncNames["lle_X_exit"] = lle_X_exit;
|
||||
FuncNames["lle_X_abort"] = lle_X_abort;
|
||||
|
Reference in New Issue
Block a user