mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Moved interfaces to owned non-code-generating modules
This commit is contained in:
parent
d86eb0625c
commit
f0d99a2bcc
5 changed files with 52 additions and 18 deletions
|
@ -1038,6 +1038,7 @@ void BfModule::PopulateType(BfType* resolvedTypeRef, BfPopulateType populateType
|
|||
{
|
||||
BfLogSysM("Setting reified type %p in module %p in PopulateType on module awaiting finish\n", resolvedTypeRef, typeModule);
|
||||
typeModule->mIsReified = true;
|
||||
typeModule->CalcGeneratesCode();
|
||||
typeModule->mWantsIRIgnoreWrites = false;
|
||||
for (auto ownedTypes : typeModule->mOwnedTypeInstances)
|
||||
{
|
||||
|
@ -6049,7 +6050,15 @@ void BfModule::AddMethodToWorkList(BfMethodInstance* methodInstance)
|
|||
methodProcessRequest->mFromModule = this;
|
||||
|
||||
if ((!mCompiler->mIsResolveOnly) && (methodInstance->mIsReified))
|
||||
{
|
||||
if ((!mIsModuleMutable) && (!mIsScratchModule))
|
||||
{
|
||||
BF_ASSERT(!mGeneratesCode);
|
||||
StartNewRevision(BfModule::RebuildKind_None);
|
||||
}
|
||||
|
||||
BF_ASSERT(mIsModuleMutable || mReifyQueued);
|
||||
}
|
||||
|
||||
BF_ASSERT(mBfIRBuilder != NULL);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue