| 9591 | } |
| 9592 | |
| 9593 | void CeMachine::Init() |
| 9594 | { |
| 9595 | BF_ASSERT(mCeModule == NULL); |
| 9596 | |
| 9597 | mCeModule = new BfModule(mCompiler->mContext, "__constEval"); |
| 9598 | mCeModule->mIsSpecialModule = true; |
| 9599 | //mCeModule->mIsScratchModule = true; |
| 9600 | mCeModule->mIsComptimeModule = true; |
| 9601 | //mCeModule->mIsReified = true; |
| 9602 | if (mCompiler->mIsResolveOnly) |
| 9603 | mCeModule->mIsReified = true; |
| 9604 | else |
| 9605 | mCeModule->mIsReified = false; |
| 9606 | mCeModule->Init(); |
| 9607 | |
| 9608 | BF_ASSERT(mCeModule->mBfIRBuilder == NULL); |
| 9609 | mCeModule->mBfIRBuilder = new BfIRBuilder(mCeModule); |
| 9610 | mCeModule->mBfIRBuilder->mDbgVerifyCodeGen = true; |
| 9611 | mCeModule->FinishInit(); |
| 9612 | mCeModule->mBfIRBuilder->mHasDebugInfo = true; |
| 9613 | mCeModule->mHasFullDebugInfo = mDebugger != NULL; |
| 9614 | mCeModule->mBfIRBuilder->mIgnoreWrites = false; |
| 9615 | mCeModule->mWantsIRIgnoreWrites = false; |
| 9616 | } |
| 9617 | |
| 9618 | BeContext* CeMachine::GetBeContext() |
| 9619 | { |
no test coverage detected