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

Method ClearConstData

IDEHelper/Compiler/BfIRBuilder.cpp:2167–2181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2165}
2166
2167void BfIRBuilder::ClearConstData()
2168{
2169 mTempAlloc.Clear();
2170 mConstMemMap.Clear();
2171 mFunctionMap.Clear();
2172 mGlobalVarMap.Clear();
2173 BF_ASSERT(mMethodTypeMap.GetCount() == 0);
2174 BF_ASSERT(mTypeMap.GetCount() == 0);
2175 BF_ASSERT(mDITemporaryTypes.size() == 0);
2176#ifdef BFIR_RENTRY_CHECK
2177 BF_ASSERT(mDeclReentrySet.size() == 0);
2178 BF_ASSERT(mDefReentrySet.size() == 0);
2179#endif
2180 BF_ASSERT(mStream.GetSize() == 0);
2181}
2182
2183void BfIRBuilder::ClearNonConstData()
2184{

Callers

nothing calls this directly

Calls 4

ClearMethod · 0.45
GetCountMethod · 0.45
sizeMethod · 0.45
GetSizeMethod · 0.45

Tested by

no test coverage detected