mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[yul-phaser] Require specifying weights for Program::codeSize()
This commit is contained in:
@@ -207,7 +207,7 @@ unique_ptr<Block> Program::applyOptimisationSteps(
|
||||
return _ast;
|
||||
}
|
||||
|
||||
size_t Program::computeCodeSize(Block const& _ast)
|
||||
size_t Program::computeCodeSize(Block const& _ast, CodeWeights const& _weights)
|
||||
{
|
||||
return CodeSize::codeSizeIncludingFunctions(_ast);
|
||||
return CodeSize::codeSizeIncludingFunctions(_ast, _weights);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user