From 7ffaebf9daca08a7d22002b83db0f5c7da2c367f Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Fri, 14 Nov 2014 19:06:36 +0000 Subject: [PATCH] Remove redundant virtual on overriden functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222023 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/ForwardControlFlowIntegrity.h | 2 +- include/llvm/CodeGen/PBQPRAConstraint.h | 2 +- lib/Analysis/CFLAliasAnalysis.cpp | 4 ++-- lib/Transforms/Utils/SymbolRewriter.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/llvm/CodeGen/ForwardControlFlowIntegrity.h b/include/llvm/CodeGen/ForwardControlFlowIntegrity.h index 906ae331431..a6232c51df5 100644 --- a/include/llvm/CodeGen/ForwardControlFlowIntegrity.h +++ b/include/llvm/CodeGen/ForwardControlFlowIntegrity.h @@ -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). diff --git a/include/llvm/CodeGen/PBQPRAConstraint.h b/include/llvm/CodeGen/PBQPRAConstraint.h index 147bc4a83d3..833b9bad613 100644 --- a/include/llvm/CodeGen/PBQPRAConstraint.h +++ b/include/llvm/CodeGen/PBQPRAConstraint.h @@ -61,7 +61,7 @@ public: } private: std::vector> Constraints; - virtual void anchor() override; + void anchor() override; }; } diff --git a/lib/Analysis/CFLAliasAnalysis.cpp b/lib/Analysis/CFLAliasAnalysis.cpp index 20bd286eea3..5f1b3d3a638 100644 --- a/lib/Analysis/CFLAliasAnalysis.cpp +++ b/lib/Analysis/CFLAliasAnalysis.cpp @@ -157,8 +157,8 @@ struct FunctionHandle : public CallbackVH { 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; diff --git a/lib/Transforms/Utils/SymbolRewriter.cpp b/lib/Transforms/Utils/SymbolRewriter.cpp index a678dde26da..aacc9450546 100644 --- a/lib/Transforms/Utils/SymbolRewriter.cpp +++ b/lib/Transforms/Utils/SymbolRewriter.cpp @@ -475,7 +475,7 @@ public: RewriteSymbols(); RewriteSymbols(SymbolRewriter::RewriteDescriptorList &DL); - virtual bool runOnModule(Module &M) override; + bool runOnModule(Module &M) override; private: void loadAndParseMapFiles(); -- 2.34.1