From: Eric Christopher Date: Thu, 4 Dec 2014 22:26:07 +0000 (+0000) Subject: Fix a bunch of -Winconsistent-missing-override warnings. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9a36eab1edaf5debce77a773877240a223ef77c;p=platform%2Fupstream%2Fllvm.git Fix a bunch of -Winconsistent-missing-override warnings. llvm-svn: 223400 --- diff --git a/lld/lib/ReaderWriter/ELF/SectionChunks.h b/lld/lib/ReaderWriter/ELF/SectionChunks.h index 754ad1c..d9a6dc9 100644 --- a/lld/lib/ReaderWriter/ELF/SectionChunks.h +++ b/lld/lib/ReaderWriter/ELF/SectionChunks.h @@ -48,10 +48,10 @@ public: /// \brief Modify the section contents before assigning virtual addresses // or assigning file offsets - virtual void doPreFlight() override {} + void doPreFlight() override {} /// \brief Finalize the section contents before writing - virtual void finalize() override {} + void finalize() override {} /// \brief Does this section have an output segment. virtual bool hasOutputSegment() { @@ -212,7 +212,7 @@ public: uint64_t alignOffset(uint64_t offset, DefinedAtom::Alignment &atomAlign); /// Return if the section is a loadable section that occupies memory - virtual bool isLoadableSection() const { return _isLoadedInMemory; } + bool isLoadableSection() const override { return _isLoadedInMemory; } // \brief Append an atom to a Section. The atom gets pushed into a vector // contains the atom, the atom file offset, the atom virtual address @@ -222,7 +222,7 @@ public: /// \brief Set the virtual address of each Atom in the Section. This /// routine gets called after the linker fixes up the virtual address /// of the section - virtual void assignVirtualAddress(uint64_t addr) { + virtual void assignVirtualAddress(uint64_t addr) override { for (auto &ai : _atoms) { ai->_virtualAddr = addr + ai->_fileOffset; } @@ -230,7 +230,7 @@ public: /// \brief Set the file offset of each Atom in the section. This routine /// gets called after the linker fixes up the section offset - virtual void assignFileOffsets(uint64_t offset) { + void assignFileOffsets(uint64_t offset) override { for (auto &ai : _atoms) { ai->_fileOffset = offset + ai->_fileOffset; } @@ -256,8 +256,8 @@ public: range atoms() { return _atoms; } - virtual void write(ELFWriter *writer, TargetLayout &layout, - llvm::FileOutputBuffer &buffer); + void write(ELFWriter *writer, TargetLayout &layout, + llvm::FileOutputBuffer &buffer) override; static bool classof(const Chunk *c) { return c->kind() == Chunk::Kind::AtomSection;