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:
parent
c080f1cbb1
commit
996377909f
6 changed files with 28 additions and 26 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue