mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Move ConstantOptimiser constructor to header
This commit is contained in:
parent
9836f90e70
commit
9d52325b29
@ -134,11 +134,6 @@ bigint LiteralMethod::gasNeeded() const
|
||||
);
|
||||
}
|
||||
|
||||
CodeCopyMethod::CodeCopyMethod(Params const& _params, u256 const& _value):
|
||||
ConstantOptimisationMethod(_params, _value)
|
||||
{
|
||||
}
|
||||
|
||||
bigint CodeCopyMethod::gasNeeded() const
|
||||
{
|
||||
return combineGas(
|
||||
|
@ -119,7 +119,8 @@ public:
|
||||
class CodeCopyMethod: public ConstantOptimisationMethod
|
||||
{
|
||||
public:
|
||||
explicit CodeCopyMethod(Params const& _params, u256 const& _value);
|
||||
explicit CodeCopyMethod(Params const& _params, u256 const& _value):
|
||||
ConstantOptimisationMethod(_params, _value) {}
|
||||
bigint gasNeeded() const override;
|
||||
AssemblyItems execute(Assembly& _assembly) const override;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user