Also output optimized yul code if requested.

This commit is contained in:
chriseth 2019-03-19 17:22:56 +01:00
parent 164a51eeae
commit 7c524f794f

View File

@ -439,6 +439,10 @@ void CompilerContext::appendInlineAssembly(
identifierAccess.resolve
).analyze(*parserResult))
reportError("Optimizer introduced error into inline assembly.");
#ifdef SOL_OUTPUT_ASM
cout << "After optimizer: " << endl;
cout << yul::AsmPrinter()(*parserResult) << endl;
#endif
}
if (!errorReporter.errors().empty())