Merge pull request #6325 from ethereum/alsoOutputOptimized

Also output optimized yul code if requested.
This commit is contained in:
chriseth 2019-03-19 17:51:42 +01:00 committed by GitHub
commit 7da5e9575b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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())