Browse Source

Improve BasicBlock code formatting

cl-refactor
Paweł Bylica 10 years ago
parent
commit
3e948d963b
  1. 4
      libevmjit/BasicBlock.cpp

4
libevmjit/BasicBlock.cpp

@ -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,7 +243,7 @@ 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

Loading…
Cancel
Save