[NFC] Remove obsolete diagnostic for unstructured control flow

llvm-svn: 248118
This commit is contained in:
Johannes Doerfert 2015-09-20 14:55:50 +00:00
parent 2744d21fb8
commit b276bde162
2 changed files with 0 additions and 38 deletions

View File

@ -258,29 +258,6 @@ public:
//@}
};
//===----------------------------------------------------------------------===//
/// @brief Captures a not well-structured condition within the CFG.
class ReportCondition : public ReportCFG {
//===--------------------------------------------------------------------===//
// The BasicBlock we found the broken condition in.
BasicBlock *BB;
public:
ReportCondition(BasicBlock *BB) : ReportCFG(rrkCondition), BB(BB) {}
/// @name LLVM-RTTI interface
//@{
static bool classof(const RejectReason *RR);
//@}
/// @name RejectReason interface
//@{
virtual std::string getMessage() const override;
virtual const DebugLoc &getDebugLoc() const override;
//@}
};
//===----------------------------------------------------------------------===//
/// @brief Base class for non-affine reject reasons.
///

View File

@ -157,21 +157,6 @@ bool ReportNonBranchTerminator::classof(const RejectReason *RR) {
return RR->getKind() == rrkNonBranchTerminator;
}
//===----------------------------------------------------------------------===//
// ReportCondition.
std::string ReportCondition::getMessage() const {
return ("Not well structured condition at BB: " + BB->getName()).str();
}
const DebugLoc &ReportCondition::getDebugLoc() const {
return BB->getTerminator()->getDebugLoc();
}
bool ReportCondition::classof(const RejectReason *RR) {
return RR->getKind() == rrkCondition;
}
//===----------------------------------------------------------------------===//
// ReportAffFunc.