Print code snippets next to source locations in IR output

This commit is contained in:
Kamil Śliwak
2021-09-14 12:09:59 +02:00
parent d78522b08b
commit 14639efc5d
38 changed files with 989 additions and 333 deletions
+1 -1
View File
@@ -1329,7 +1329,7 @@ void CompilerStack::generateIR(ContractDefinition const& _contract)
for (auto const& pair: m_contracts)
otherYulSources.emplace(pair.second.contract, pair.second.yulIR);
IRGenerator generator(m_evmVersion, m_revertStrings, m_optimiserSettings, sourceIndices());
IRGenerator generator(m_evmVersion, m_revertStrings, m_optimiserSettings, sourceIndices(), this);
tie(compiledContract.yulIR, compiledContract.yulIROptimized) = generator.run(
_contract,
createCBORMetadata(compiledContract),