From c94234c11cce3e6ff99b77d2505e9a9cb4ef0c98 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sat, 7 Feb 2015 08:12:22 +0000 Subject: [PATCH] Consistently use override rather than virtual. This fixes -Winconsistent-missing-override warnings. llvm-svn: 228489 --- llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp b/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp index c12e60a..87d4197 100644 --- a/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp +++ b/llvm/unittests/DebugInfo/PDB/PDBApiTest.cpp @@ -70,24 +70,24 @@ class MockRawSymbol : public IPDBRawSymbol { public: MockRawSymbol(PDB_SymType SymType) : Type(SymType) {} - virtual void dump(llvm::raw_ostream &OS) const {} + void dump(llvm::raw_ostream &OS) const override {} - virtual std::unique_ptr + std::unique_ptr findChildren(PDB_SymType Type, StringRef Name, - PDB_NameSearchFlags Flags) const { + PDB_NameSearchFlags Flags) const override { return nullptr; } - virtual std::unique_ptr + std::unique_ptr findChildrenByRVA(PDB_SymType Type, StringRef Name, PDB_NameSearchFlags Flags, - uint32_t RVA) const { + uint32_t RVA) const override { return nullptr; } - virtual std::unique_ptr - findInlineFramesByRVA(uint32_t RVA) const { + std::unique_ptr + findInlineFramesByRVA(uint32_t RVA) const override { return nullptr; } - virtual void getDataBytes(llvm::SmallVector &bytes) const {} + void getDataBytes(llvm::SmallVector &bytes) const override {} PDB_SymType getSymTag() const override { return Type; } -- 2.7.4