[yul-phaser] Require specifying weights for Program::codeSize()

This commit is contained in:
Kamil Śliwak
2020-05-20 16:47:23 +02:00
parent d199fc537b
commit 40dfac7683
10 changed files with 76 additions and 52 deletions
+3 -1
View File
@@ -17,6 +17,8 @@
#include <tools/yulPhaser/ProgramCache.h>
#include <libyul/optimiser/Metrics.h>
#include <libyul/optimiser/Suite.h>
using namespace std;
@@ -133,7 +135,7 @@ size_t ProgramCache::calculateTotalCachedCodeSize() const
{
size_t size = 0;
for (auto const& pair: m_entries)
size += pair.second.program.codeSize();
size += pair.second.program.codeSize(CodeWeights{});
return size;
}