Use 'override/final' instead of 'virtual' for overridden methods
[oota-llvm.git] / include / llvm / Analysis / InlineCost.h
index 63d399afad85e0a785c2a00ccd2e76483499299c..79ed74d8241110976b6289d97676aff6dd5137a4 100644 (file)
@@ -77,7 +77,7 @@ public:
   }
 
   /// \brief Test whether the inline cost is low enough for inlining.
-  LLVM_EXPLICIT operator bool() const {
+  explicit operator bool() const {
     return Cost < Threshold;
   }
 
@@ -107,7 +107,7 @@ public:
   static char ID;
 
   InlineCostAnalysis();
-  ~InlineCostAnalysis();
+  ~InlineCostAnalysis() override;
 
   // Pass interface implementation.
   void getAnalysisUsage(AnalysisUsage &AU) const override;