diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-05-25 07:19:11 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-05-27 03:39:10 +0800 |
commit | dda497ca027f5dcd47c6e2b8d624b327c4478adc (patch) | |
tree | d60645eccb4f3b96766fe6d09104858605a30af0 | |
parent | 788b64ea6181af6e7e364e86d64508c4809ca9b7 (diff) | |
download | dexon-solidity-dda497ca027f5dcd47c6e2b8d624b327c4478adc.tar dexon-solidity-dda497ca027f5dcd47c6e2b8d624b327c4478adc.tar.gz dexon-solidity-dda497ca027f5dcd47c6e2b8d624b327c4478adc.tar.bz2 dexon-solidity-dda497ca027f5dcd47c6e2b8d624b327c4478adc.tar.lz dexon-solidity-dda497ca027f5dcd47c6e2b8d624b327c4478adc.tar.xz dexon-solidity-dda497ca027f5dcd47c6e2b8d624b327c4478adc.tar.zst dexon-solidity-dda497ca027f5dcd47c6e2b8d624b327c4478adc.zip |
Move constructor to AsmAnalyzer header
-rw-r--r-- | libsolidity/inlineasm/AsmAnalysis.cpp | 9 | ||||
-rw-r--r-- | libsolidity/inlineasm/AsmAnalysis.h | 4 |
2 files changed, 2 insertions, 11 deletions
diff --git a/libsolidity/inlineasm/AsmAnalysis.cpp b/libsolidity/inlineasm/AsmAnalysis.cpp index 60caaa1d..742d2c1a 100644 --- a/libsolidity/inlineasm/AsmAnalysis.cpp +++ b/libsolidity/inlineasm/AsmAnalysis.cpp @@ -38,15 +38,6 @@ using namespace dev; using namespace dev::solidity; using namespace dev::solidity::assembly; -AsmAnalyzer::AsmAnalyzer( - AsmAnalysisInfo& _analysisInfo, - ErrorList& _errors, - julia::ExternalIdentifierAccess::Resolver const& _resolver -): - m_resolver(_resolver), m_info(_analysisInfo), m_errors(_errors) -{ -} - bool AsmAnalyzer::analyze(Block const& _block) { if (!(ScopeFiller(m_info.scopes, m_errors))(_block)) diff --git a/libsolidity/inlineasm/AsmAnalysis.h b/libsolidity/inlineasm/AsmAnalysis.h index 613abf38..da4b7608 100644 --- a/libsolidity/inlineasm/AsmAnalysis.h +++ b/libsolidity/inlineasm/AsmAnalysis.h @@ -61,11 +61,11 @@ struct AsmAnalysisInfo; class AsmAnalyzer: public boost::static_visitor<bool> { public: - AsmAnalyzer( + explicit AsmAnalyzer( AsmAnalysisInfo& _analysisInfo, ErrorList& _errors, julia::ExternalIdentifierAccess::Resolver const& _resolver = julia::ExternalIdentifierAccess::Resolver() - ); + ): m_resolver(_resolver), m_info(_analysisInfo), m_errors(_errors) {} bool analyze(assembly::Block const& _block); |