diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-03-05 09:10:37 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-03-05 09:10:37 +0000 |
commit | 3e4c697ca1314da24ac34e42293cc28d88fdc134 (patch) | |
tree | 7a935b36554394c06777483ad27cf41e23360ead /llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp | |
parent | 6a927ecb7a98e2c9a25b724f96f153749ca475dd (diff) | |
download | bcm5719-llvm-3e4c697ca1314da24ac34e42293cc28d88fdc134.tar.gz bcm5719-llvm-3e4c697ca1314da24ac34e42293cc28d88fdc134.zip |
[C++11] Add 'override' keyword to virtual methods that override their base class.
llvm-svn: 202953
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp index 445434c9f16..91f4785acc3 100644 --- a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp +++ b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp @@ -144,7 +144,7 @@ namespace { DL = 0; DT = 0; SE = 0; TLI = 0; TTI = 0; } - bool runOnLoop(Loop *L, LPPassManager &LPM); + bool runOnLoop(Loop *L, LPPassManager &LPM) override; bool runOnLoopBlock(BasicBlock *BB, const SCEV *BECount, SmallVectorImpl<BasicBlock*> &ExitBlocks); @@ -164,7 +164,7 @@ namespace { /// This transformation requires natural loop information & requires that /// loop preheaders be inserted into the CFG. /// - virtual void getAnalysisUsage(AnalysisUsage &AU) const { + void getAnalysisUsage(AnalysisUsage &AU) const override { AU.addRequired<LoopInfo>(); AU.addPreserved<LoopInfo>(); AU.addRequiredID(LoopSimplifyID); |