diff options
| author | Simon Atanasyan <simon@atanasyan.com> | 2014-03-06 10:29:45 +0000 |
|---|---|---|
| committer | Simon Atanasyan <simon@atanasyan.com> | 2014-03-06 10:29:45 +0000 |
| commit | 54f6f7bd77b8f69dbe31d367e06229049f39caa6 (patch) | |
| tree | dd86b95a4b387168cc815398311b3e0612839291 /lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp | |
| parent | df1e3cb157d8bdbb645e444bf4211e9b43d08d77 (diff) | |
| download | bcm5719-llvm-54f6f7bd77b8f69dbe31d367e06229049f39caa6.tar.gz bcm5719-llvm-54f6f7bd77b8f69dbe31d367e06229049f39caa6.zip | |
[Mips] Replace "virtual" by "override" in member function declarations
where it is appropriate.
llvm-svn: 203102
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp')
| -rw-r--r-- | lld/lib/ReaderWriter/ELF/Mips/MipsRelocationPass.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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<uint8_t> rawContent() const { + ArrayRef<uint8_t> rawContent() const override { return llvm::makeArrayRef(mipsGot0AtomContent); } }; @@ -67,7 +67,7 @@ class GOTModulePointerAtom : public MipsGOTAtom { public: GOTModulePointerAtom(const File &f) : MipsGOTAtom(f) {} - virtual ArrayRef<uint8_t> rawContent() const { + ArrayRef<uint8_t> 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<uint8_t> rawContent() const { + ArrayRef<uint8_t> 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<uint8_t> rawContent() const { + ArrayRef<uint8_t> 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<uint8_t> rawContent() const { + ArrayRef<uint8_t> 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<MutableFile> &mf) { + void perform(std::unique_ptr<MutableFile> &mf) override { // Process all references. for (const auto &atom : mf->defined()) for (const auto &ref : *atom) |

