diff options
author | chriseth <chris@ethereum.org> | 2017-06-06 21:37:43 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-06-08 21:52:45 +0800 |
commit | ef3d5874fefa6a86a30d4afdcfd269d599edda5d (patch) | |
tree | b97381cf9e39d55cd42c585255f7903c7687bcdc /libsolidity/codegen | |
parent | 19f707aeaa23b55a4a5940977a9d6351d1f06938 (diff) | |
download | dexon-solidity-ef3d5874fefa6a86a30d4afdcfd269d599edda5d.tar.gz dexon-solidity-ef3d5874fefa6a86a30d4afdcfd269d599edda5d.tar.zst dexon-solidity-ef3d5874fefa6a86a30d4afdcfd269d599edda5d.zip |
Remove error reporter from code generation phase.
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r-- | libsolidity/codegen/ContractCompiler.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libsolidity/codegen/ContractCompiler.cpp b/libsolidity/codegen/ContractCompiler.cpp index 03926350..dc090634 100644 --- a/libsolidity/codegen/ContractCompiler.cpp +++ b/libsolidity/codegen/ContractCompiler.cpp @@ -524,9 +524,6 @@ bool ContractCompiler::visit(FunctionDefinition const& _function) bool ContractCompiler::visit(InlineAssembly const& _inlineAssembly) { - ErrorList errors; - ErrorReporter errorReporter(errors); - assembly::CodeGenerator codeGen(errorReporter); unsigned startStackHeight = m_context.stackHeight(); julia::ExternalIdentifierAccess identifierAccess; identifierAccess.resolve = [&](assembly::Identifier const& _identifier, julia::IdentifierContext, bool) @@ -648,13 +645,12 @@ bool ContractCompiler::visit(InlineAssembly const& _inlineAssembly) } }; solAssert(_inlineAssembly.annotation().analysisInfo, ""); - codeGen.assemble( + assembly::CodeGenerator::assemble( _inlineAssembly.operations(), *_inlineAssembly.annotation().analysisInfo, m_context.nonConstAssembly(), identifierAccess ); - solAssert(Error::containsOnlyWarnings(errorReporter.errors()), "Code generation for inline assembly with errors requested."); m_context.setStackOffset(startStackHeight); return false; } |