CommandLineParser: Store the state of EVM assembly and Yul optimizer explicitly

- Does not change the meaning of CLI options, just the way we map them to internal variables.
This commit is contained in:
Kamil Śliwak
2023-06-06 09:54:07 +02:00
parent f1d2eda795
commit 42a068b449
5 changed files with 48 additions and 14 deletions
-3
View File
@@ -1074,9 +1074,6 @@ void CommandLineInterface::assembleYul(yul::YulStack::Language _language, yul::Y
map<string, yul::YulStack> yulStacks;
for (auto const& src: m_fileReader.sourceUnits())
{
// --no-optimize-yul option is not accepted in assembly mode.
solAssert(!m_options.optimizer.noOptimizeYul);
auto& stack = yulStacks[src.first] = yul::YulStack(
m_options.output.evmVersion,
m_options.output.eofVersion,