[lld] r223400 - Fix a bunch of -Winconsistent-missing-override warnings.
Eric Christopher
echristo at gmail.com
Thu Dec 4 14:26:07 PST 2014
Author: echristo
Date: Thu Dec 4 16:26:07 2014
New Revision: 223400
URL: http://llvm.org/viewvc/llvm-project?rev=223400&view=rev
Log:
Fix a bunch of -Winconsistent-missing-override warnings.
Modified:
lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h
Modified: lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h?rev=223400&r1=223399&r2=223400&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h Thu Dec 4 16:26:07 2014
@@ -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<atom_iter> atoms() { return _atoms; }
- virtual void write(ELFWriter *writer, TargetLayout<ELFT> &layout,
- llvm::FileOutputBuffer &buffer);
+ void write(ELFWriter *writer, TargetLayout<ELFT> &layout,
+ llvm::FileOutputBuffer &buffer) override;
static bool classof(const Chunk<ELFT> *c) {
return c->kind() == Chunk<ELFT>::Kind::AtomSection;
More information about the llvm-commits
mailing list