]> granicus.if.org Git - clang/commit
Added CFG support for: for loops
authorTed Kremenek <kremenek@apple.com>
Wed, 22 Aug 2007 18:22:34 +0000 (18:22 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 22 Aug 2007 18:22:34 +0000 (18:22 +0000)
commite8ee26b49d68ae3ffdf9a990ff7511ef55afa04c
treebfdcc2f1f59304d7a2f62acbf441d71530661fd2
parent294494e1cce92043562b4680c613df7fd028c02e
Added CFG support for: for loops

In CFG dumper, refactored the code to print block terminators into a
StmtVisitor.

Added the method "FinishBlock" to CFGBuilder to do the reversal of statements
in a block instead of calling "reverseStmts" for a block directly.  This
was necessary to fix a bug in how blocks with labels were being processed
(some cases would cause the statements to be reversed twice).  FinishBlock
detects blocks that start with labels and doesn't do a second reversal.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41281 91177308-0d34-0410-b5e6-96231b3b80d8
AST/CFG.cpp