mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
Improve BasicBlock code formatting
This commit is contained in:
parent
64513d5aaa
commit
de67937f2c
1 changed files with 5 additions and 5 deletions
|
|
@ -109,7 +109,7 @@ void BasicBlock::LocalStack::synchronize(Stack& _evmStack)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Push new values
|
// Push new values
|
||||||
for ( ; currIter < endIter; ++currIter)
|
for (; currIter < endIter; ++currIter)
|
||||||
{
|
{
|
||||||
assert(*currIter != nullptr);
|
assert(*currIter != nullptr);
|
||||||
_evmStack.push(*currIter);
|
_evmStack.push(*currIter);
|
||||||
|
|
@ -243,11 +243,11 @@ void BasicBlock::linkLocalStacks(std::vector<BasicBlock*> basicBlocks, llvm::IRB
|
||||||
{
|
{
|
||||||
if (getenv("EVMCC_DEBUG_BLOCKS"))
|
if (getenv("EVMCC_DEBUG_BLOCKS"))
|
||||||
{
|
{
|
||||||
for (auto& pair: cfg)
|
for (auto& pair : cfg)
|
||||||
std::cerr << pair.second.bblock.llvm()->getName().str()
|
std::cerr << pair.second.bblock.llvm()->getName().str()
|
||||||
<< ": in " << pair.second.inputItems
|
<< ": in " << pair.second.inputItems
|
||||||
<< ", out " << pair.second.outputItems
|
<< ", out " << pair.second.outputItems
|
||||||
<< "\n";
|
<< "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
valuesChanged = false;
|
valuesChanged = false;
|
||||||
|
|
@ -347,7 +347,7 @@ void BasicBlock::dump(std::ostream& _out, bool _dotOutput)
|
||||||
out << (_dotOutput ? "\\l" : "\n");
|
out << (_dotOutput ? "\\l" : "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
out << (_dotOutput ? "| " : "Instructions:\n");
|
out << (_dotOutput ? "| " : "Instructions:\n");
|
||||||
for (auto ins = m_llvmBB->begin(); ins != m_llvmBB->end(); ++ins)
|
for (auto ins = m_llvmBB->begin(); ins != m_llvmBB->end(); ++ins)
|
||||||
out << *ins << (_dotOutput ? "\\l" : "\n");
|
out << *ins << (_dotOutput ? "\\l" : "\n");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue