mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add the _runs
parameter.
This commit is contained in:
parent
4c15c465ef
commit
f1907bbb12
@ -242,9 +242,9 @@ bool CompilerStack::compile(bool _optimize, unsigned _runs, map<string, h160> co
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CompilerStack::compile(string const& _sourceCode, bool _optimize)
|
bool CompilerStack::compile(string const& _sourceCode, bool _optimize, unsigned _runs)
|
||||||
{
|
{
|
||||||
return parse(_sourceCode) && compile(_optimize);
|
return parse(_sourceCode) && compile(_optimize, _runs);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CompilerStack::link()
|
void CompilerStack::link()
|
||||||
|
@ -120,7 +120,7 @@ public:
|
|||||||
);
|
);
|
||||||
/// Parses and compiles the given source code.
|
/// Parses and compiles the given source code.
|
||||||
/// @returns false on error.
|
/// @returns false on error.
|
||||||
bool compile(std::string const& _sourceCode, bool _optimize = false);
|
bool compile(std::string const& _sourceCode, bool _optimize = false, unsigned _runs = 200);
|
||||||
|
|
||||||
/// Tries to translate all source files into a language suitable for formal analysis.
|
/// Tries to translate all source files into a language suitable for formal analysis.
|
||||||
/// @param _errors list to store errors - defaults to the internal error list.
|
/// @param _errors list to store errors - defaults to the internal error list.
|
||||||
|
Loading…
Reference in New Issue
Block a user