mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #6325 from ethereum/alsoOutputOptimized
Also output optimized yul code if requested.
This commit is contained in:
commit
7da5e9575b
@ -439,6 +439,10 @@ void CompilerContext::appendInlineAssembly(
|
|||||||
identifierAccess.resolve
|
identifierAccess.resolve
|
||||||
).analyze(*parserResult))
|
).analyze(*parserResult))
|
||||||
reportError("Optimizer introduced error into inline assembly.");
|
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())
|
if (!errorReporter.errors().empty())
|
||||||
|
Loading…
Reference in New Issue
Block a user