Merge pull request #6325 from ethereum/alsoOutputOptimized

Also output optimized yul code if requested.
This commit is contained in:
chriseth authored and GitHub committed 2019-03-19 17:51:42 +01:00
commit 7da5e9575b
1 file changed
+4
+4
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())