aboutsummaryrefslogtreecommitdiffstats
path: root/solc/CommandLineInterface.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-07-17 18:54:02 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-07-26 22:17:07 +0800
commit30012db396793efad5dba9a2bbb64d34994709ce (patch)
tree6270037929123b5a95038a6bd7f3b6a305d516ac /solc/CommandLineInterface.cpp
parent6848199b66d9cadae901f71dcf944fe9aa927eeb (diff)
downloaddexon-solidity-30012db396793efad5dba9a2bbb64d34994709ce.tar
dexon-solidity-30012db396793efad5dba9a2bbb64d34994709ce.tar.gz
dexon-solidity-30012db396793efad5dba9a2bbb64d34994709ce.tar.bz2
dexon-solidity-30012db396793efad5dba9a2bbb64d34994709ce.tar.lz
dexon-solidity-30012db396793efad5dba9a2bbb64d34994709ce.tar.xz
dexon-solidity-30012db396793efad5dba9a2bbb64d34994709ce.tar.zst
dexon-solidity-30012db396793efad5dba9a2bbb64d34994709ce.zip
Add CompilerStack::setOptimiserSettings
Diffstat (limited to 'solc/CommandLineInterface.cpp')
-rw-r--r--solc/CommandLineInterface.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp
index 38f72713..740061a1 100644
--- a/solc/CommandLineInterface.cpp
+++ b/solc/CommandLineInterface.cpp
@@ -779,7 +779,9 @@ bool CommandLineInterface::processInput()
// TODO: Perhaps we should not compile unless requested
bool optimize = m_args.count(g_argOptimize) > 0;
unsigned runs = m_args[g_argOptimizeRuns].as<unsigned>();
- bool successful = m_compiler->compile(optimize, runs);
+ m_compiler->setOptimiserSettings(optimize, runs);
+
+ bool successful = m_compiler->compile();
for (auto const& error: m_compiler->errors())
SourceReferenceFormatter::printExceptionInformation(