From 7c524f794fde2822fdda26263b36d211403b376c Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 19 Mar 2019 17:22:56 +0100 Subject: [PATCH] Also output optimized yul code if requested. --- libsolidity/codegen/CompilerContext.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libsolidity/codegen/CompilerContext.cpp b/libsolidity/codegen/CompilerContext.cpp index e106a4839..30b1ebf72 100644 --- a/libsolidity/codegen/CompilerContext.cpp +++ b/libsolidity/codegen/CompilerContext.cpp @@ -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())