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

Added IsReadOnly to FieldInfo and MethodInfo

This commit is contained in:
Brian Fiete 2022-05-30 06:20:47 -07:00
parent c080f1cbb1
commit 996377909f
6 changed files with 28 additions and 26 deletions

View file

@ -697,6 +697,8 @@ BfMethodFlags BfMethodInstance::GetMethodFlags()
methodFlags = (BfMethodFlags)(methodFlags | BfMethodFlags_Mutating);
if (mMethodDef->mMethodType == BfMethodType_Ctor)
methodFlags = (BfMethodFlags)(methodFlags | BfMethodFlags_Constructor);
if (mMethodDef->mIsReadOnly)
methodFlags = (BfMethodFlags)(methodFlags | BfMethodFlags_ReadOnly);
auto callingConvention = GetOwner()->mModule->GetIRCallingConvention(this);
if (callingConvention == BfIRCallingConv_ThisCall)
@ -705,6 +707,7 @@ BfMethodFlags BfMethodInstance::GetMethodFlags()
methodFlags = (BfMethodFlags)(methodFlags | BfMethodFlags_StdCall);
else if (callingConvention == BfIRCallingConv_FastCall)
methodFlags = (BfMethodFlags)(methodFlags | BfMethodFlags_FastCall);
return methodFlags;
}