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

Method RestoreState

IDEHelper/Compiler/BfSystem.cpp:1238–1255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1236}
1237
1238void BfPassInstance::RestoreState(StateInfo stateInfo)
1239{
1240 while (mOutStream.mSize > stateInfo.mOutStreamSize)
1241 mOutStream.pop_back();
1242
1243 while (mErrors.mSize > stateInfo.mErrorsSize)
1244 {
1245 auto error = mErrors.back();
1246 mErrors.pop_back();
1247 mErrorSet.Remove(error);
1248 delete error;
1249 }
1250
1251 mWarningCount = stateInfo.mWarningCount;
1252 mDeferredErrorCount = stateInfo.mDeferredErrorCount;
1253 mFailedIdx = stateInfo.mFailedIdx;
1254 mWarnIdx = stateInfo.mWarnIdx;
1255}
1256
1257void BfPassInstance::ClearErrors()
1258{

Callers 1

CompileMethod · 0.80

Calls 3

pop_backMethod · 0.45
backMethod · 0.45
RemoveMethod · 0.45

Tested by

no test coverage detected