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

Made method mutability part of signature and method selection

This commit is contained in:
Brian Fiete 2020-08-29 14:18:05 -07:00
parent f795215b44
commit c49d92b779
7 changed files with 129 additions and 14 deletions

View file

@ -56,6 +56,11 @@ bool BfTypedValue::IsValuelessType() const
return mType->IsValuelessType();
}
bool BfTypedValue::CanModify() const
{
return (((IsAddr()) || (mType->IsValuelessType())) && (!IsReadOnly()));
}
//////////////////////////////////////////////////////////////////////////
bool BfDependencyMap::AddUsedBy(BfType* dependentType, BfDependencyMap::DependencyFlags flags)