MCPcopy Create free account
hub / github.com/beefytech/Beef / Init

Method Init

IDEHelper/Compiler/CeMachine.cpp:9593–9616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9591}
9592
9593void 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
9618BeContext* CeMachine::GetBeContext()
9619{

Callers 2

BuildMethod · 0.45
CallMethod · 0.45

Calls 1

FinishInitMethod · 0.80

Tested by

no test coverage detected