Removed unused and incorrectly implemented classof() on Optimization Remark base...
[oota-llvm.git] / 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