mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Refactor Optimiser Steps Interface.
This commit is contained in:
@@ -59,6 +59,11 @@ OptionalStatements replaceConstArgSwitch(Switch& _switchStmt, u256 const& _const
|
||||
|
||||
}
|
||||
|
||||
void StructuralSimplifier::run(OptimiserStepContext&, Block& _ast)
|
||||
{
|
||||
StructuralSimplifier{}(_ast);
|
||||
}
|
||||
|
||||
void StructuralSimplifier::operator()(Block& _block)
|
||||
{
|
||||
simplify(_block.statements);
|
||||
|
||||
Reference in New Issue
Block a user