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

Start of compile-time function evaluation

This commit is contained in:
Brian Fiete 2020-12-13 08:04:42 -08:00
parent 350516fae3
commit 577e199dcd
17 changed files with 2437 additions and 29 deletions

View file

@ -1175,6 +1175,7 @@ BfIRBuilder::BfIRBuilder(BfModule* module) : BfIRConstHolder(module)
mModule = module;
mHasDebugLoc = false;
mHasDebugInfo = false;
mHasDebugLineInfo = false;
mIRCodeGen = NULL;
#ifdef BF_PLATFORM_WINDOWS
mBeIRCodeGen = NULL;
@ -4895,6 +4896,7 @@ void BfIRBuilder::CreateObjectAccessCheck(BfIRValue value, bool useAsm)
void BfIRBuilder::DbgInit()
{
mHasDebugInfo = true;
mHasDebugLineInfo = true;
WriteCmd(BfIRCmd_DbgInit);
NEW_CMD_INSERTED;
}
@ -4920,6 +4922,11 @@ bool BfIRBuilder::DbgHasInfo()
return mHasDebugInfo;
}
bool BfIRBuilder::DbgHasLineInfo()
{
return mHasDebugLineInfo;
}
String BfIRBuilder::DbgGetStaticFieldName(BfFieldInstance* fieldInstance)
{
String fieldName;