[Polly] Add override qualifiers.
authorMichael Kruse <llvm-project@meinersbur.de>
Tue, 17 Nov 2020 03:26:37 +0000 (21:26 -0600)
committerMichael Kruse <llvm-project@meinersbur.de>
Tue, 17 Nov 2020 03:29:37 +0000 (21:29 -0600)
Silence compiler warnings that suggest to add override qualifiers.

polly/lib/CodeGen/ManagedMemoryRewrite.cpp
polly/lib/CodeGen/PPCGCodeGeneration.cpp

index ad74fa2..72ad026 100644 (file)
@@ -354,7 +354,7 @@ public:
   GPURuntime Runtime;
 
   ManagedMemoryRewritePass() : ModulePass(ID) {}
-  virtual bool runOnModule(Module &M) {
+  bool runOnModule(Module &M) override {
     const DataLayout &DL = M.getDataLayout();
 
     Function *Malloc = M.getFunction("malloc");
index bd92c7e..0b95900 100644 (file)
@@ -337,7 +337,7 @@ public:
   void initializeAfterRTH();
 
   /// Finalize the generated scop.
-  virtual void finalize();
+  void finalize() override;
 
   /// Track if the full build process was successful.
   ///
@@ -408,9 +408,9 @@ private:
   ///   - In-kernel memory copy statement
   ///
   /// @param UserStmt The ast node to generate code for.
-  virtual void createUser(__isl_take isl_ast_node *UserStmt);
+  void createUser(__isl_take isl_ast_node *UserStmt) override;
 
-  virtual void createFor(__isl_take isl_ast_node *Node);
+  void createFor(__isl_take isl_ast_node *Node) override;
 
   enum DataDirection { HOST_TO_DEVICE, DEVICE_TO_HOST };