From 54f6f7bd77b8f69dbe31d367e06229049f39caa6 Mon Sep 17 00:00:00 2001 From: Simon Atanasyan Date: Thu, 6 Mar 2014 10:29:45 +0000 Subject: [Mips] Replace "virtual" by "override" in member function declarations where it is appropriate. llvm-svn: 203102 --- lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp') diff --git a/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp b/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp index 78c879fce9d..c636d4bbff2 100644 --- a/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp +++ b/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp @@ -49,7 +49,7 @@ class MipsGOTAtom : public GOTAtom { public: MipsGOTAtom(const File &f) : GOTAtom(f, ".got") {} - virtual Alignment alignment() const { return Alignment(2); } + Alignment alignment() const override { return Alignment(2); } }; /// \brief MIPS GOT entry initialized by zero. @@ -57,7 +57,7 @@ class GOT0Atom : public MipsGOTAtom { public: GOT0Atom(const File &f) : MipsGOTAtom(f) {} - virtual ArrayRef rawContent() const { + ArrayRef rawContent() const override { return llvm::makeArrayRef(mipsGot0AtomContent); } }; @@ -67,7 +67,7 @@ class GOTModulePointerAtom : public MipsGOTAtom { public: GOTModulePointerAtom(const File &f) : MipsGOTAtom(f) {} - virtual ArrayRef rawContent() const { + ArrayRef rawContent() const override { return llvm::makeArrayRef(mipsGotModulePointerAtomContent); } }; @@ -76,7 +76,7 @@ class PLT0Atom : public PLTAtom { public: PLT0Atom(const File &f) : PLTAtom(f, ".plt") {} - virtual ArrayRef rawContent() const { + ArrayRef rawContent() const override { return llvm::makeArrayRef(mipsPlt0AtomContent); } }; @@ -85,7 +85,7 @@ class PLTAAtom : public PLTAtom { public: PLTAAtom(const File &f) : PLTAtom(f, ".plt") {} - virtual ArrayRef rawContent() const { + ArrayRef rawContent() const override { return llvm::makeArrayRef(mipsPltAAtomContent); } }; @@ -95,9 +95,9 @@ class GOTPLTAtom : public GOTAtom { public: GOTPLTAtom(const File &f) : GOTAtom(f, ".got.plt") {} - virtual Alignment alignment() const { return Alignment(2); } + Alignment alignment() const override { return Alignment(2); } - virtual ArrayRef rawContent() const { + ArrayRef rawContent() const override { return llvm::makeArrayRef(mipsGot0AtomContent); } }; @@ -120,7 +120,7 @@ public: _localGotVector.push_back(new (_file._alloc) GOTModulePointerAtom(_file)); } - virtual void perform(std::unique_ptr &mf) { + void perform(std::unique_ptr &mf) override { // Process all references. for (const auto &atom : mf->defined()) for (const auto &ref : *atom) -- cgit v1.2.3