From 9d52325b2981a091a54de43cd7839455645f7a86 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 28 Jan 2019 11:20:46 +0000 Subject: [PATCH] Move ConstantOptimiser constructor to header --- libevmasm/ConstantOptimiser.cpp | 5 ----- libevmasm/ConstantOptimiser.h | 3 ++- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/libevmasm/ConstantOptimiser.cpp b/libevmasm/ConstantOptimiser.cpp index ae1a56437..b56415a95 100644 --- a/libevmasm/ConstantOptimiser.cpp +++ b/libevmasm/ConstantOptimiser.cpp @@ -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( diff --git a/libevmasm/ConstantOptimiser.h b/libevmasm/ConstantOptimiser.h index 04c43c5d6..9108e0397 100644 --- a/libevmasm/ConstantOptimiser.h +++ b/libevmasm/ConstantOptimiser.h @@ -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;