From 3e4c697ca1314da24ac34e42293cc28d88fdc134 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 5 Mar 2014 09:10:37 +0000 Subject: [C++11] Add 'override' keyword to virtual methods that override their base class. llvm-svn: 202953 --- llvm/lib/Transforms/Utils/LCSSA.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Transforms/Utils/LCSSA.cpp') diff --git a/llvm/lib/Transforms/Utils/LCSSA.cpp b/llvm/lib/Transforms/Utils/LCSSA.cpp index 606700a..18717de 100644 --- a/llvm/lib/Transforms/Utils/LCSSA.cpp +++ b/llvm/lib/Transforms/Utils/LCSSA.cpp @@ -252,12 +252,12 @@ struct LCSSA : public FunctionPass { LoopInfo *LI; ScalarEvolution *SE; - virtual bool runOnFunction(Function &F); + bool runOnFunction(Function &F) override; /// This transformation requires natural loop information & requires that /// loop preheaders be inserted into the CFG. It maintains both of these, /// as well as the CFG. It also requires dominator information. - virtual void getAnalysisUsage(AnalysisUsage &AU) const { + void getAnalysisUsage(AnalysisUsage &AU) const override { AU.setPreservesCFG(); AU.addRequired(); @@ -270,7 +270,7 @@ struct LCSSA : public FunctionPass { private: bool processLoop(Loop &L); - virtual void verifyAnalysis() const; + void verifyAnalysis() const override; }; } -- cgit v1.1