diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-29 08:01:47 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-29 18:09:18 +0800 |
commit | 7fb4a64136af18f2b61aef71ecc33ccbbc790ec6 (patch) | |
tree | c44271af2ca3c9a4461a297ba608f1a75910f09b /libevmasm/PeepholeOptimiser.cpp | |
parent | b364bd048ffaf233782a23dabd13622431a75aa3 (diff) | |
download | dexon-solidity-7fb4a64136af18f2b61aef71ecc33ccbbc790ec6.tar.gz dexon-solidity-7fb4a64136af18f2b61aef71ecc33ccbbc790ec6.tar.zst dexon-solidity-7fb4a64136af18f2b61aef71ecc33ccbbc790ec6.zip |
Move all file specific globals to anonymous namespace
Diffstat (limited to 'libevmasm/PeepholeOptimiser.cpp')
-rw-r--r-- | libevmasm/PeepholeOptimiser.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libevmasm/PeepholeOptimiser.cpp b/libevmasm/PeepholeOptimiser.cpp index e94a8ba4..31fdd317 100644 --- a/libevmasm/PeepholeOptimiser.cpp +++ b/libevmasm/PeepholeOptimiser.cpp @@ -30,6 +30,9 @@ using namespace dev; // TODO: Extend this to use the tools from ExpressionClasses.cpp +namespace +{ + struct OptimiserState { AssemblyItems const& items; @@ -246,6 +249,8 @@ void applyMethods(OptimiserState& _state, Method, OtherMethods... _other) applyMethods(_state, _other...); } +} + bool PeepholeOptimiser::optimise() { OptimiserState state {m_items, 0, std::back_inserter(m_optimisedItems)}; |