| 1930 | } |
| 1931 | |
| 1932 | void 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 | |
| 1948 | void BeMCContext::AssertFail(const StringImpl& str, int line) |
| 1949 | { |
no test coverage detected