diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-01-30 23:02:42 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-01-30 23:02:42 +0000 |
commit | a292585207adbf6dcf6347db3526a7ec861d8eac (patch) | |
tree | b7b7d2e00e09c4a2813e430760debaa795917e38 /include/clang | |
parent | 890d93eec45f2ba720dce98e34a1a904697ae842 (diff) |
Added method "printTerminator" to CFGBlock so that external clients can
pretty-print a block's terminator.
When building CFGs, for IfStmts ('if'), we no longer add the ParenExpr
that is the subexpression of the IfStmt to the CFG; instead we add its
first descendant subexpression that is not a ParenExpr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46580 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/AST/CFG.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/clang/AST/CFG.h b/include/clang/AST/CFG.h index 95f9cfdb8c..146af84be8 100644 --- a/include/clang/AST/CFG.h +++ b/include/clang/AST/CFG.h @@ -166,6 +166,7 @@ public: void dump(const CFG* cfg) const; void print(std::ostream& OS, const CFG* cfg) const; + void printTerminator(std::ostream& OS) const; }; |