mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
C++ namespace cleanup (except tests).
This commit is contained in:
committed by
Daniel Kirchner
parent
8385256bdc
commit
6b23412fae
@@ -27,8 +27,8 @@
|
||||
#include <utility>
|
||||
|
||||
using namespace std;
|
||||
using namespace dev;
|
||||
using namespace yul;
|
||||
using namespace solidity;
|
||||
using namespace solidity::yul;
|
||||
|
||||
void LoopInvariantCodeMotion::run(OptimiserStepContext& _context, Block& _ast)
|
||||
{
|
||||
@@ -41,7 +41,7 @@ void LoopInvariantCodeMotion::run(OptimiserStepContext& _context, Block& _ast)
|
||||
|
||||
void LoopInvariantCodeMotion::operator()(Block& _block)
|
||||
{
|
||||
iterateReplacing(
|
||||
util::iterateReplacing(
|
||||
_block.statements,
|
||||
[&](Statement& _s) -> optional<vector<Statement>>
|
||||
{
|
||||
@@ -85,7 +85,7 @@ optional<vector<Statement>> LoopInvariantCodeMotion::rewriteLoop(ForLoop& _for)
|
||||
for (Block* block: {&_for.post, &_for.body})
|
||||
{
|
||||
set<YulString> varsDefinedInScope;
|
||||
iterateReplacing(
|
||||
util::iterateReplacing(
|
||||
block->statements,
|
||||
[&](Statement& _s) -> optional<vector<Statement>>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user