[llvm] r293158 - [TargetTransformInfo] Add override keywords to supporess -Winconsistent-missing-override.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 26 00:04:27 PST 2017


Author: ctopper
Date: Thu Jan 26 02:04:27 2017
New Revision: 293158

URL: http://llvm.org/viewvc/llvm-project?rev=293158&view=rev
Log:
[TargetTransformInfo] Add override keywords to supporess -Winconsistent-missing-override.

Modified:
    llvm/trunk/include/llvm/Analysis/TargetTransformInfo.h

Modified: llvm/trunk/include/llvm/Analysis/TargetTransformInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/TargetTransformInfo.h?rev=293158&r1=293157&r2=293158&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/TargetTransformInfo.h (original)
+++ llvm/trunk/include/llvm/Analysis/TargetTransformInfo.h Thu Jan 26 02:04:27 2017
@@ -942,11 +942,12 @@ public:
   bool shouldBuildLookupTablesForConstant(Constant *C) override {
     return Impl.shouldBuildLookupTablesForConstant(C);
   }
-  unsigned getScalarizationOverhead(Type *Ty, bool Insert, bool Extract) {
+  unsigned getScalarizationOverhead(Type *Ty, bool Insert,
+                                    bool Extract) override {
     return Impl.getScalarizationOverhead(Ty, Insert, Extract);
   }
   unsigned getOperandsScalarizationOverhead(ArrayRef<const Value *> Args,
-                                            unsigned VF) {
+                                            unsigned VF) override {
     return Impl.getOperandsScalarizationOverhead(Args, VF);
   }
 




More information about the llvm-commits mailing list