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/CodeGen/AsmPrinter/CodeViewDebug.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/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index f7041c0..3f053c7 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -101,21 +101,21 @@ public: CVMCAdapter(MCStreamer &OS, TypeCollection &TypeTable) : OS(&OS), TypeTable(TypeTable) {} - void emitBytes(StringRef Data) { OS->emitBytes(Data); } + void emitBytes(StringRef Data) override { OS->emitBytes(Data); } - void emitIntValue(uint64_t Value, unsigned Size) { + void emitIntValue(uint64_t Value, unsigned Size) override { OS->emitIntValueInHex(Value, Size); } - void emitBinaryData(StringRef Data) { OS->emitBinaryData(Data); } + void emitBinaryData(StringRef Data) override { OS->emitBinaryData(Data); } - void AddComment(const Twine &T) { OS->AddComment(T); } + void AddComment(const Twine &T) override { OS->AddComment(T); } - void AddRawComment(const Twine &T) { OS->emitRawComment(T); } + void AddRawComment(const Twine &T) override { OS->emitRawComment(T); } - bool isVerboseAsm() { return OS->isVerboseAsm(); } + bool isVerboseAsm() override { return OS->isVerboseAsm(); } - std::string getTypeName(TypeIndex TI) { + std::string getTypeName(TypeIndex TI) override { std::string TypeName; if (!TI.isNoneType()) { if (TI.isSimple()) |