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

Method Fail

IDEHelper/Backend/BeMCContext.cpp:1932–1946  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1930}
1931
1932void BeMCContext::Fail(const StringImpl& str)
1933{
1934 String errStr = StrFormat("Failure during codegen of %s in %s: %s", mBeFunction->mName.c_str(), mModule->mModuleName.c_str(), str.c_str());
1935
1936 if (mActiveBlock != NULL)
1937 errStr += StrFormat("\n MCBlock: %s", mActiveBlock->mName.c_str());
1938 if ((mActiveInst != NULL) && (mActiveInst->mDbgLoc != NULL))
1939 {
1940 BeDumpContext dumpCtx;
1941 errStr += "\n DbgLoc : ";
1942 dumpCtx.ToString(errStr, mActiveInst->mDbgLoc);
1943 }
1944
1945 BfpSystem_FatalError(errStr.c_str(), "FATAL ERROR");
1946}
1947
1948void BeMCContext::AssertFail(const StringImpl& str, int line)
1949{

Callers 3

AssignRegsMethod · 0.45
SoftFailMethod · 0.45
GenerateMethod · 0.45

Calls 3

BfpSystem_FatalErrorFunction · 0.50
c_strMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected