mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Added bitcode emission, additional logging
This commit is contained in:
parent
1e8c633a36
commit
43b69023f6
14 changed files with 74 additions and 31 deletions
|
@ -20478,6 +20478,7 @@ bool BfModule::Finish()
|
|||
codeGenOptions.mSIMDSetting = moduleOptions.mSIMDSetting;
|
||||
codeGenOptions.mWriteLLVMIR = mCompiler->mOptions.mWriteIR;
|
||||
codeGenOptions.mWriteObj = mCompiler->mOptions.mGenerateObj;
|
||||
codeGenOptions.mWriteBitcode = mCompiler->mOptions.mGenerateBitcode;
|
||||
codeGenOptions.mVirtualMethodOfs = 1 + mCompiler->GetDynCastVDataCount() + mCompiler->mMaxInterfaceSlots;
|
||||
codeGenOptions.mDynSlotOfs = mSystem->mPtrSize - mCompiler->GetDynCastVDataCount() * 4;
|
||||
|
||||
|
@ -20525,7 +20526,7 @@ bool BfModule::Finish()
|
|||
{
|
||||
moduleFileName.mFileName = irOutputPath;
|
||||
}
|
||||
else if ((!mCompiler->mOptions.mGenerateObj) && (!mCompiler->mOptions.mWriteIR))
|
||||
else if ((!mCompiler->mOptions.mGenerateObj) && (!mCompiler->mOptions.mGenerateBitcode) && (!mCompiler->mOptions.mWriteIR))
|
||||
{
|
||||
BF_FATAL("Neither obj nor IR specified");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue