diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-22 05:05:24 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-22 17:51:46 +0800 |
commit | 9897c56b2cacf162f8fd41d60e91b7f71863f8d5 (patch) | |
tree | fb0f04a445940004a8a45e03bc98d149c5cc71a7 /libevmasm/ConstantOptimiser.cpp | |
parent | 2a5772cff7d03de0d02c5358a6a6755e8f802697 (diff) | |
download | dexon-solidity-9897c56b2cacf162f8fd41d60e91b7f71863f8d5.tar.gz dexon-solidity-9897c56b2cacf162f8fd41d60e91b7f71863f8d5.tar.zst dexon-solidity-9897c56b2cacf162f8fd41d60e91b7f71863f8d5.zip |
Mark a lot of functions static (where possible)
Diffstat (limited to 'libevmasm/ConstantOptimiser.cpp')
-rw-r--r-- | libevmasm/ConstantOptimiser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libevmasm/ConstantOptimiser.cpp b/libevmasm/ConstantOptimiser.cpp index a7a87c35..2efd2dc9 100644 --- a/libevmasm/ConstantOptimiser.cpp +++ b/libevmasm/ConstantOptimiser.cpp @@ -159,7 +159,7 @@ AssemblyItems CodeCopyMethod::execute(Assembly& _assembly) const return actualCopyRoutine; } -AssemblyItems const& CodeCopyMethod::copyRoutine() const +AssemblyItems const& CodeCopyMethod::copyRoutine() { AssemblyItems static copyRoutine{ u256(0), @@ -234,7 +234,7 @@ AssemblyItems ComputeMethod::findRepresentation(u256 const& _value) } } -bool ComputeMethod::checkRepresentation(u256 const& _value, AssemblyItems const& _routine) const +bool ComputeMethod::checkRepresentation(u256 const& _value, AssemblyItems const& _routine) { // This is a tiny EVM that can only evaluate some instructions. vector<u256> stack; |