mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-16 05:01:56 +00:00
[NFC] Remove obsolete diagnostic for unstructured control flow
llvm-svn: 248118
This commit is contained in:
parent
2744d21fb8
commit
b276bde162
@ -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.
|
||||
///
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user