Merge pull request #2843 from ethereum/anonymous-cleanup

Move all file specific globals to anonymous namespace
This commit is contained in:
chriseth
2017-08-29 14:07:24 +02:00
committed by GitHub
8 changed files with 36 additions and 5 deletions
+5
View File
@@ -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)};