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

Method FatalError

IDEHelper/Backend/BeIRCodeGen.cpp:292–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292void BeIRCodeGen::FatalError(const StringImpl& err)
293{
294 String failStr = "Fatal Error in Module: ";
295 if (mBeModule != NULL)
296 failStr += mBeModule->mModuleName;
297 failStr += "\n";
298 if (mBeModule != NULL)
299 {
300 BeDumpContext dumpCtx;
301
302 if (mActiveFunction != NULL)
303 {
304 failStr += "Function: ";
305 failStr += mActiveFunction->mName;
306 failStr += "\n";
307 }
308
309 if (mBeModule->mCurDbgLoc != NULL)
310 {
311 failStr += "DbgLoc: ";
312 dumpCtx.ToString(failStr, mBeModule->mCurDbgLoc);
313 failStr += "\n";
314 }
315 }
316
317 failStr += err;
318 BF_FATAL(failStr);
319}
320
321void BeIRCodeGen::NotImpl()
322{

Callers

nothing calls this directly

Calls 1

ToStringMethod · 0.45

Tested by

no test coverage detected