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

Method ClearUnused

IDEHelper/Compiler/BfCompiler.cpp:274–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274void BfCompiler::HotData::ClearUnused(bool isHotCompile)
275{
276 BP_ZONE("BfCompiler::HotData::ClearUnused");
277
278 DeleteUnused(mThisType);
279 DeleteUnused(mAllocation);
280 DeleteUnused(mDevirtualizedMethods);
281 DeleteUnused(mVirtualDecls);
282 DeleteUnused(mInnerMethods);
283
284 if (isHotCompile)
285 {
286 // We need to keep all function pointer references ever, since we can't tell if we still reference them or not
287 DeleteUnused(mFuncPtrs);
288 }
289}
290
291BfHotThisType* BfCompiler::HotData::GetThisType(BfHotTypeVersion* hotVersion)
292{

Callers 1

ClearOldHotDataMethod · 0.80

Calls 1

DeleteUnusedFunction · 0.85

Tested by

no test coverage detected