mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Move analysis out of code generator.
This commit is contained in:
1 parent
4afd54b235
commit
dfb7d5ebd9
7 files changed
+55
-26
No files matched your search
@@ -520,7 +520,7 @@ bool ContractCompiler::visit(FunctionDefinition const& _function)
|
||||
bool ContractCompiler::visit(InlineAssembly const& _inlineAssembly)
|
||||
{
|
||||
ErrorList errors;
|
||||
assembly::CodeGenerator codeGen(_inlineAssembly.operations(), errors);
|
||||
assembly::CodeGenerator codeGen(errors);
|
||||
unsigned startStackHeight = m_context.stackHeight();
|
||||
assembly::ExternalIdentifierAccess identifierAccess;
|
||||
identifierAccess.resolve = [&](assembly::Identifier const& _identifier, assembly::IdentifierContext)
|
||||
@@ -598,6 +598,8 @@ bool ContractCompiler::visit(InlineAssembly const& _inlineAssembly)
|
||||
}
|
||||
};
|
||||
codeGen.assemble(
|
||||
_inlineAssembly.operations(),
|
||||
_inlineAssembly.annotation().scopes,
|
||||
m_context.nonConstAssembly(),
|
||||
identifierAccess
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user