Remove unused method CFGBlock::hasBinaryBranchTerminator().

llvm-svn: 130336
This commit is contained in:
Ted Kremenek 2011-04-27 22:16:58 +00:00
parent 7ec652a7a2
commit f8ac5288a3
2 changed files with 0 additions and 28 deletions

View File

@ -468,8 +468,6 @@ public:
const Stmt *getLoopTarget() const { return LoopTarget; }
bool hasBinaryBranchTerminator() const;
Stmt* getLabel() { return Label; }
const Stmt* getLabel() const { return Label; }

View File

@ -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
//===----------------------------------------------------------------------===//