1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-03-04 21:31:03 +00:00

Add a debug-only 'dump' method to the BlockChain structure to ease

debugging.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154286 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chandler Carruth 2012-04-08 14:37:01 +00:00
parent 2450eca960
commit 6313d941d2

@ -141,6 +141,14 @@ public:
} }
} }
#ifndef NDEBUG
/// \brief Dump the blocks in this chain.
void dump() LLVM_ATTRIBUTE_USED {
for (iterator I = begin(), E = end(); I != E; ++I)
(*I)->dump();
}
#endif // NDEBUG
/// \brief Count of predecessors within the loop currently being processed. /// \brief Count of predecessors within the loop currently being processed.
/// ///
/// This count is updated at each loop we process to represent the number of /// This count is updated at each loop we process to represent the number of