summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/ELF/SectionChunks.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-12-04 22:26:07 +0000
committerEric Christopher <echristo@gmail.com>2014-12-04 22:26:07 +0000
commite9a36eab1edaf5debce77a773877240a223ef77c (patch)
treee3193a9a1bba194bd8b306d4d9894ccb7b04c74e /lld/lib/ReaderWriter/ELF/SectionChunks.h
parent67ead59108951514932fbaad6ae9e07cd9eed704 (diff)
downloadbcm5719-llvm-e9a36eab1edaf5debce77a773877240a223ef77c.tar.gz
bcm5719-llvm-e9a36eab1edaf5debce77a773877240a223ef77c.zip
Fix a bunch of -Winconsistent-missing-override warnings.
llvm-svn: 223400
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/SectionChunks.h')
-rw-r--r--lld/lib/ReaderWriter/ELF/SectionChunks.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/lld/lib/ReaderWriter/ELF/SectionChunks.h b/lld/lib/ReaderWriter/ELF/SectionChunks.h
index 754ad1c9f95..d9a6dc946f7 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<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;
OpenPOWER on IntegriCloud