1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

DLL import hotswap fixes

This commit is contained in:
Brian Fiete 2020-04-16 00:32:00 -07:00
parent 75e0cb9907
commit 11a46fa422
2 changed files with 22 additions and 2 deletions

View file

@ -4215,6 +4215,15 @@ BfTypedValue BfExprEvaluator::CreateCall(BfMethodInstance* methodInstance, BfIRV
mModule->mFuncReferences.TryGetValue(methodInstance, &funcCallInst);
}
if ((importCallKind == BfImportCallKind_GlobalVar) &&
(methodInstance->mHotMethod == NULL) &&
(mModule->mCompiler->IsHotCompile()))
{
// This may actually be a BfImportCallKind_GlobalVar_Hot, so check it...
mModule->CheckHotMethod(methodInstance, "");
importCallKind = methodInstance->GetImportCallKind();
}
if (importCallKind == BfImportCallKind_GlobalVar_Hot)
{
//TODO: Check against NULL for calling BfLoadSharedLibraries