1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Deferred Import dynamic/static check, fix calling convention

This commit is contained in:
Brian Fiete 2019-12-21 05:44:01 -08:00
parent fbb06862b3
commit 42452fe09c
15 changed files with 102 additions and 44 deletions

View file

@ -2024,10 +2024,12 @@ void BfMSMangler::Mangle(StringImpl& name, bool is64Bit, BfMethodInstance* metho
name += qualifier;
}
auto callingConvention = mangleContext.mModule->GetIRCallingConvention(typeInst, methodDef);
char callingConv = 'A';
if (methodDef->mCallingConvention == BfCallingConvention_Stdcall)
if (callingConvention == BfIRCallingConv_StdCall)
callingConv = 'G';
else if ((!mangleContext.mIs64Bit) && (!methodDef->mIsStatic))
else if (callingConvention == BfIRCallingConv_ThisCall)
callingConv = 'E';
name += callingConv;