From 90622a1bc989e5bcb05a5d1fcf9c36fb14a2bbfb Mon Sep 17 00:00:00 2001 From: Tyler Nowicki Date: Mon, 10 Aug 2015 20:13:32 +0000 Subject: [PATCH 1/1] Removed unused and incorrectly implemented classof() on Optimization Remark base class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244494 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/DiagnosticInfo.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/llvm/IR/DiagnosticInfo.h b/include/llvm/IR/DiagnosticInfo.h index 40dfa6c6a49..0df38133f3d 100644 --- a/include/llvm/IR/DiagnosticInfo.h +++ b/include/llvm/IR/DiagnosticInfo.h @@ -268,10 +268,6 @@ public: /// \see DiagnosticInfo::print. void print(DiagnosticPrinter &DP) const override; - static bool classof(const DiagnosticInfo *DI) { - return DI->getKind() == DK_OptimizationRemark; - } - /// Return true if this optimization remark is enabled by one of /// of the LLVM command line flags (-pass-remarks, -pass-remarks-missed, /// or -pass-remarks-analysis). Note that this only handles the LLVM -- 2.34.1