diff options
author | Logan Smith <logan.r.smith0@gmail.com> | 2020-07-14 09:47:29 -0700 |
---|---|---|
committer | Logan Smith <logan.r.smith0@gmail.com> | 2020-07-14 09:47:29 -0700 |
commit | a19461d9e114bea99186a4f0ea092a650a1650c2 (patch) | |
tree | 182ee3aecec0164b2a7a2234ee1f2ff4cd7da374 /llvm/lib/Transforms/Utils/UnifyLoopExits.cpp | |
parent | fbb30c31fefcf992ddb287087e8ca766eeddb59d (diff) | |
download | llvm-a19461d9e114bea99186a4f0ea092a650a1650c2.zip llvm-a19461d9e114bea99186a4f0ea092a650a1650c2.tar.gz llvm-a19461d9e114bea99186a4f0ea092a650a1650c2.tar.bz2 |
[NFC] Add 'override' keyword where missing in include/ and lib/.
This fixes warnings raised by Clang's new -Wsuggest-override, in preparation for enabling that warning in the LLVM build. This patch also removes the virtual keyword where redundant, but only in places where doing so improves consistency within a given file. It also removes a couple unnecessary virtual destructor declarations in derived classes where the destructor inherited from the base class is already virtual.
Differential Revision: https://reviews.llvm.org/D83709
Diffstat (limited to 'llvm/lib/Transforms/Utils/UnifyLoopExits.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/UnifyLoopExits.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/UnifyLoopExits.cpp b/llvm/lib/Transforms/Utils/UnifyLoopExits.cpp index 8cdb4d6..b10deee 100644 --- a/llvm/lib/Transforms/Utils/UnifyLoopExits.cpp +++ b/llvm/lib/Transforms/Utils/UnifyLoopExits.cpp @@ -33,7 +33,7 @@ struct UnifyLoopExits : public FunctionPass { initializeUnifyLoopExitsPass(*PassRegistry::getPassRegistry()); } - void getAnalysisUsage(AnalysisUsage &AU) const { + void getAnalysisUsage(AnalysisUsage &AU) const override { AU.addRequiredID(LowerSwitchID); AU.addRequired<LoopInfoWrapperPass>(); AU.addRequired<DominatorTreeWrapperPass>(); @@ -42,7 +42,7 @@ struct UnifyLoopExits : public FunctionPass { AU.addPreserved<DominatorTreeWrapperPass>(); } - bool runOnFunction(Function &F); + bool runOnFunction(Function &F) override; }; } // namespace |