diff options
author | chriseth <c@ethdev.com> | 2015-06-06 01:22:30 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-06-06 01:22:30 +0800 |
commit | 779e793d60f2076fbd35b34f0c2073e92c058eef (patch) | |
tree | 5bde2e4f0270ed40529f9ef5e79d5ecdc14666bf /CompilerStack.cpp | |
parent | 92eb04c6eccba8b6d7c5c02e5ca2084d9e4fecf6 (diff) | |
parent | 9efd5374ed5d3e2c5abf6d85907e1e3ac5ce5b32 (diff) | |
download | dexon-solidity-779e793d60f2076fbd35b34f0c2073e92c058eef.tar dexon-solidity-779e793d60f2076fbd35b34f0c2073e92c058eef.tar.gz dexon-solidity-779e793d60f2076fbd35b34f0c2073e92c058eef.tar.bz2 dexon-solidity-779e793d60f2076fbd35b34f0c2073e92c058eef.tar.lz dexon-solidity-779e793d60f2076fbd35b34f0c2073e92c058eef.tar.xz dexon-solidity-779e793d60f2076fbd35b34f0c2073e92c058eef.tar.zst dexon-solidity-779e793d60f2076fbd35b34f0c2073e92c058eef.zip |
Merge pull request #2084 from chriseth/sol_computeConstants
Compute constants
Diffstat (limited to 'CompilerStack.cpp')
-rw-r--r-- | CompilerStack.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CompilerStack.cpp b/CompilerStack.cpp index ebb98876..a3399823 100644 --- a/CompilerStack.cpp +++ b/CompilerStack.cpp @@ -145,7 +145,7 @@ vector<string> CompilerStack::getContractNames() const } -void CompilerStack::compile(bool _optimize) +void CompilerStack::compile(bool _optimize, unsigned _runs) { if (!m_parseSuccessful) parse(); @@ -157,9 +157,9 @@ void CompilerStack::compile(bool _optimize) { if (!contract->isFullyImplemented()) continue; - shared_ptr<Compiler> compiler = make_shared<Compiler>(_optimize); + shared_ptr<Compiler> compiler = make_shared<Compiler>(_optimize, _runs); compiler->compileContract(*contract, contractBytecode); - Contract& compiledContract = m_contracts[contract->getName()]; + Contract& compiledContract = m_contracts.at(contract->getName()); compiledContract.bytecode = compiler->getAssembledBytecode(); compiledContract.runtimeBytecode = compiler->getRuntimeBytecode(); compiledContract.compiler = move(compiler); |