From: Chandler Carruth Date: Sat, 7 Feb 2015 08:12:22 +0000 (+0000) Subject: Consistently use override rather than virtual. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c94234c11cce3e6ff99b77d2505e9a9cb4ef0c98;p=platform%2Fupstream%2Fllvm.git Consistently use override rather than virtual. This fixes -Winconsistent-missing-override warnings. llvm-svn: 228489 --- 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; }