mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Improved handling of mGhostDependencies. Codegen Abort
This commit is contained in:
parent
9988dec99d
commit
a82cc0534d
6 changed files with 37 additions and 4 deletions
|
@ -2217,6 +2217,12 @@ void BfIRBuilder::WriteIR(const StringImpl& fileName)
|
|||
NEW_CMD_INSERTED;
|
||||
}
|
||||
|
||||
void BfIRBuilder::AbortStream()
|
||||
{
|
||||
WriteCmd(BfIRCmd_Abort);
|
||||
NEW_CMD_INSERTED;
|
||||
}
|
||||
|
||||
void BfIRBuilder::Module_SetTargetTriple(const StringImpl& targetTriple, const StringImpl& targetCPU)
|
||||
{
|
||||
WriteCmd(BfIRCmd_Module_SetTargetTriple, targetTriple, targetCPU);
|
||||
|
@ -2774,7 +2780,11 @@ void BfIRBuilder::CreateTypeDeclaration(BfType* type, bool forceDbgDefine)
|
|||
if (!type->IsDeclared())
|
||||
populateModule->PopulateType(type, BfPopulateType_Declaration);
|
||||
|
||||
BF_ASSERT(type->IsDeclared());
|
||||
if (!type->IsDeclared())
|
||||
{
|
||||
AbortStream();
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef BFIR_RENTRY_CHECK
|
||||
ReEntryCheck reEntryCheck(&mDeclReentrySet, type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue