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

Method BfIRCodeGen

IDEHelper/Compiler/BfIRCodeGen.cpp:347–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345///
346
347BfIRCodeGen::BfIRCodeGen()
348{
349 mStream = NULL;
350 mBfIRBuilder = NULL;
351 mLLVMTargetMachine = NULL;
352
353 mNopInlineAsm = NULL;
354 mObjectCheckAsm = NULL;
355 mOverflowCheckAsm = NULL;
356 mHasDebugLoc = false;
357 mAttrSet = NULL;
358 mIRBuilder = NULL;
359 mDIBuilder = NULL;
360 mDICompileUnit = NULL;
361 mActiveFunction = NULL;
362 mActiveFunctionType = NULL;
363
364 mLLVMContext = new llvm::LLVMContext();
365 mLLVMModule = NULL;
366 mIsCodeView = false;
367 mHadDLLExport = false;
368 mConstValIdx = 0;
369 mCmdCount = 0;
370 mCurLine = -1;
371
372#ifdef BF_PLATFORM_WINDOWS
373 if (::GetStdHandle(STD_ERROR_HANDLE) == 0)
374 {
375 if (gTempFile.Create())
376 {
377 _dup2(fileno(gTempFile.mFP), 2);
378 BfpSystem_AddCrashInfoFunc(AddStdErrCrashInfo);
379 }
380 }
381#endif
382}
383
384BfIRCodeGen::~BfIRCodeGen()
385{

Callers

nothing calls this directly

Calls 2

CreateMethod · 0.45

Tested by

no test coverage detected