mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #2843 from ethereum/anonymous-cleanup
Move all file specific globals to anonymous namespace
This commit is contained in:
@@ -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)};
|
||||
|
||||
Reference in New Issue
Block a user