Removed unused and incorrectly implemented classof() on Optimization Remark base...
authorTyler Nowicki <tyler.nowicki@gmail.com>
Mon, 10 Aug 2015 20:13:32 +0000 (20:13 +0000)
committerTyler Nowicki <tyler.nowicki@gmail.com>
Mon, 10 Aug 2015 20:13:32 +0000 (20:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244494 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/DiagnosticInfo.h

index 40dfa6c6a4949729c17ad6d80533681b7a15b18c..0df38133f3d60ddb09c4d44f9998ca23eea5a01d 100644 (file)
@@ -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