Remove unused method CFGBlock::hasBinaryBranchTerminator().
llvm-svn: 130336
This commit is contained in:
parent
7ec652a7a2
commit
f8ac5288a3
|
@ -468,8 +468,6 @@ public:
|
|||
|
||||
const Stmt *getLoopTarget() const { return LoopTarget; }
|
||||
|
||||
bool hasBinaryBranchTerminator() const;
|
||||
|
||||
Stmt* getLabel() { return Label; }
|
||||
const Stmt* getLabel() const { return Label; }
|
||||
|
||||
|
|
|
@ -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
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue