Add CompilerStack::setOptimiserSettings

This commit is contained in:
Alex Beregszaszi
2017-07-26 15:17:07 +01:00
parent 6848199b66
commit 30012db396
10 changed files with 27 additions and 16 deletions
+1 -4
View File
@@ -262,15 +262,12 @@ vector<string> CompilerStack::contractNames() const
return contractNames;
}
bool CompilerStack::compile(bool _optimize, unsigned _runs)
bool CompilerStack::compile()
{
if (m_stackState < AnalysisSuccessful)
if (!parseAndAnalyze())
return false;
m_optimize = _optimize;
m_optimizeRuns = _runs;
map<ContractDefinition const*, eth::Assembly const*> compiledContracts;
for (Source const* source: m_sourceOrder)
for (ASTPointer<ASTNode> const& node: source->ast->nodes())