MCPcopy Create free account
hub / github.com/beefytech/Beef / WantsStructsAttribByVal

Method WantsStructsAttribByVal

IDEHelper/Compiler/BfResolvedTypeUtils.cpp:1035–1045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1033}
1034
1035bool BfMethodInstance::WantsStructsAttribByVal(BfType* paramType)
1036{
1037 auto owner = GetOwner();
1038 if ((owner->mModule->mCompiler->mOptions.mPlatformType == BfPlatformType_Windows) &&
1039 (owner->mModule->mCompiler->mOptions.mMachineType == BfMachineType_x64))
1040 return false;
1041 if (owner->mModule->mCompiler->mOptions.mMachineType == BfMachineType_AArch64)
1042 return false;
1043 auto typeInst = paramType->ToTypeInstance();
1044 return (typeInst != NULL) && (typeInst->mIsCRepr);
1045}
1046
1047bool BfMethodInstance::IsSkipCall(bool bypassVirtual)
1048{

Callers 2

SetupIRMethodMethod · 0.80
CreateCallMethod · 0.80

Calls 1

ToTypeInstanceMethod · 0.45

Tested by

no test coverage detected