diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-04-27 22:16:58 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-04-27 22:16:58 +0000 |
commit | 26517e4ffe7c2c366496feb02370ba24ab5ae8f5 (patch) | |
tree | 482013875e97d4a587f4be7ce0ee9a4b7c977cf2 /lib/Analysis/CFG.cpp | |
parent | 06d88ec4204be7af2cf935f39a3e3391d281ad52 (diff) |
Remove unused method CFGBlock::hasBinaryBranchTerminator().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130336 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFG.cpp')
-rw-r--r-- | lib/Analysis/CFG.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/Analysis/CFG.cpp b/lib/Analysis/CFG.cpp index eaab487d95..de16334ce1 100644 --- a/lib/Analysis/CFG.cpp +++ b/lib/Analysis/CFG.cpp @@ -3650,32 +3650,6 @@ Stmt* CFGBlock::getTerminatorCondition() { return E ? E->IgnoreParens() : NULL; } -bool CFGBlock::hasBinaryBranchTerminator() const { - const Stmt *Terminator = this->Terminator; - if (!Terminator) - return false; - - Expr* E = NULL; - - switch (Terminator->getStmtClass()) { - default: - return false; - - case Stmt::ForStmtClass: - case Stmt::WhileStmtClass: - case Stmt::DoStmtClass: - case Stmt::IfStmtClass: - case Stmt::ChooseExprClass: - case Stmt::BinaryConditionalOperatorClass: - case Stmt::ConditionalOperatorClass: - case Stmt::BinaryOperatorClass: - return true; - } - - return E ? E->IgnoreParens() : NULL; -} - - //===----------------------------------------------------------------------===// // CFG Graphviz Visualization //===----------------------------------------------------------------------===// |