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/PredicateInfo.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/PredicateInfo.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/PredicateInfo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/PredicateInfo.cpp b/llvm/lib/Transforms/Utils/PredicateInfo.cpp index 6ac2d64..99b64a7 100644 --- a/llvm/lib/Transforms/Utils/PredicateInfo.cpp +++ b/llvm/lib/Transforms/Utils/PredicateInfo.cpp @@ -885,11 +885,11 @@ class PredicateInfoAnnotatedWriter : public AssemblyAnnotationWriter { public: PredicateInfoAnnotatedWriter(const PredicateInfo *M) : PredInfo(M) {} - virtual void emitBasicBlockStartAnnot(const BasicBlock *BB, - formatted_raw_ostream &OS) {} + void emitBasicBlockStartAnnot(const BasicBlock *BB, + formatted_raw_ostream &OS) override {} - virtual void emitInstructionAnnot(const Instruction *I, - formatted_raw_ostream &OS) { + void emitInstructionAnnot(const Instruction *I, + formatted_raw_ostream &OS) override { if (const auto *PI = PredInfo->getPredicateInfoFor(I)) { OS << "; Has predicate info\n"; if (const auto *PB = dyn_cast<PredicateBranch>(PI)) { |