diff options
author | Paul Kirth <paulkirth@google.com> | 2022-03-18 00:21:33 +0000 |
---|---|---|
committer | Paul Kirth <paulkirth@google.com> | 2022-03-18 00:21:33 +0000 |
commit | 964398ccb1168e4ff5b921739dda4141df211f0c (patch) | |
tree | 925189b00b0e74132fedfbbdd5e06beec6a15650 /llvm/lib/IR/DiagnosticInfo.cpp | |
parent | 5f4a334ded90f80ca16ceb2bf784c62806ee23d1 (diff) | |
download | llvm-964398ccb1168e4ff5b921739dda4141df211f0c.zip llvm-964398ccb1168e4ff5b921739dda4141df211f0c.tar.gz llvm-964398ccb1168e4ff5b921739dda4141df211f0c.tar.bz2 |
Revert "Revert "Revert "[misexpect] Re-implement MisExpect Diagnostics"""
This reverts commit 6cf560d69a222bff4af4e1d092437fd77f0f981c.
Diffstat (limited to 'llvm/lib/IR/DiagnosticInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DiagnosticInfo.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/IR/DiagnosticInfo.cpp b/llvm/lib/IR/DiagnosticInfo.cpp index 50fe682..f46f0fd 100644 --- a/llvm/lib/IR/DiagnosticInfo.cpp +++ b/llvm/lib/IR/DiagnosticInfo.cpp @@ -393,17 +393,6 @@ std::string DiagnosticInfoOptimizationBase::getMsg() const { return OS.str(); } -DiagnosticInfoMisExpect::DiagnosticInfoMisExpect(const Instruction *Inst, - Twine &Msg) - : DiagnosticInfoWithLocationBase(DK_MisExpect, DS_Warning, - *Inst->getParent()->getParent(), - Inst->getDebugLoc()), - Msg(Msg) {} - -void DiagnosticInfoMisExpect::print(DiagnosticPrinter &DP) const { - DP << getLocationStr() << ": " << getMsg(); -} - void OptimizationRemarkAnalysisFPCommute::anchor() {} void OptimizationRemarkAnalysisAliasing::anchor() {} |