[llvm] r222023 - Remove redundant virtual on overriden functions.

David Blaikie dblaikie at gmail.com
Fri Nov 14 11:06:36 PST 2014


Author: dblaikie
Date: Fri Nov 14 13:06:36 2014
New Revision: 222023

URL: http://llvm.org/viewvc/llvm-project?rev=222023&view=rev
Log:
Remove redundant virtual on overriden functions.

Modified:
    llvm/trunk/include/llvm/CodeGen/ForwardControlFlowIntegrity.h
    llvm/trunk/include/llvm/CodeGen/PBQPRAConstraint.h
    llvm/trunk/lib/Analysis/CFLAliasAnalysis.cpp
    llvm/trunk/lib/Transforms/Utils/SymbolRewriter.cpp

Modified: llvm/trunk/include/llvm/CodeGen/ForwardControlFlowIntegrity.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/ForwardControlFlowIntegrity.h?rev=222023&r1=222022&r2=222023&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/ForwardControlFlowIntegrity.h (original)
+++ llvm/trunk/include/llvm/CodeGen/ForwardControlFlowIntegrity.h Fri Nov 14 13:06:36 2014
@@ -42,7 +42,7 @@ public:
   ForwardControlFlowIntegrity(JumpTable::JumpTableType JTT,
                               CFIntegrity CFIType,
                               bool CFIEnforcing, std::string CFIFuncName);
-  virtual ~ForwardControlFlowIntegrity() override;
+  ~ForwardControlFlowIntegrity() override;
 
   /// Runs the CFI pass on a given module. This works best if the module in
   /// question is the result of link-time optimization (see lib/LTO).

Modified: llvm/trunk/include/llvm/CodeGen/PBQPRAConstraint.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/PBQPRAConstraint.h?rev=222023&r1=222022&r2=222023&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/PBQPRAConstraint.h (original)
+++ llvm/trunk/include/llvm/CodeGen/PBQPRAConstraint.h Fri Nov 14 13:06:36 2014
@@ -61,7 +61,7 @@ public:
   }
 private:
   std::vector<std::unique_ptr<PBQPRAConstraint>> Constraints;
-  virtual void anchor() override;
+  void anchor() override;
 };
 
 }

Modified: llvm/trunk/lib/Analysis/CFLAliasAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/CFLAliasAnalysis.cpp?rev=222023&r1=222022&r2=222023&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/CFLAliasAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/CFLAliasAnalysis.cpp Fri Nov 14 13:06:36 2014
@@ -157,8 +157,8 @@ struct FunctionHandle : public CallbackV
 
   virtual ~FunctionHandle() {}
 
-  virtual void deleted() override { removeSelfFromCache(); }
-  virtual void allUsesReplacedWith(Value *) override { removeSelfFromCache(); }
+  void deleted() override { removeSelfFromCache(); }
+  void allUsesReplacedWith(Value *) override { removeSelfFromCache(); }
 
 private:
   CFLAliasAnalysis *CFLAA;

Modified: llvm/trunk/lib/Transforms/Utils/SymbolRewriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SymbolRewriter.cpp?rev=222023&r1=222022&r2=222023&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SymbolRewriter.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SymbolRewriter.cpp Fri Nov 14 13:06:36 2014
@@ -475,7 +475,7 @@ public:
   RewriteSymbols();
   RewriteSymbols(SymbolRewriter::RewriteDescriptorList &DL);
 
-  virtual bool runOnModule(Module &M) override;
+  bool runOnModule(Module &M) override;
 
 private:
   void loadAndParseMapFiles();





More information about the llvm-commits mailing list