[lld] r234419 - Remove redundant virtual on member functions marked 'override'.
David Blaikie
dblaikie at gmail.com
Wed Apr 8 10:08:27 PDT 2015
Author: dblaikie
Date: Wed Apr 8 12:08:27 2015
New Revision: 234419
URL: http://llvm.org/viewvc/llvm-project?rev=234419&view=rev
Log:
Remove redundant virtual on member functions marked 'override'.
Modified:
lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h
lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64LinkingContext.h
lld/trunk/lib/ReaderWriter/MachO/Atoms.h
Modified: lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h?rev=234419&r1=234418&r2=234419&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h Wed Apr 8 12:08:27 2015
@@ -74,7 +74,7 @@ public:
}
/// \brief Return the type of content that the section contains
- virtual int getContentType() const override {
+ int getContentType() const override {
if (_flags & llvm::ELF::SHF_EXECINSTR)
return Chunk<ELFT>::ContentType::Code;
else if (_flags & llvm::ELF::SHF_WRITE)
Modified: lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64LinkingContext.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64LinkingContext.h?rev=234419&r1=234418&r2=234419&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64LinkingContext.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/X86_64/X86_64LinkingContext.h Wed Apr 8 12:08:27 2015
@@ -68,7 +68,7 @@ public:
return false;
}
- virtual bool isPLTRelocation(const Reference &r) const override {
+ bool isPLTRelocation(const Reference &r) const override {
if (r.kindNamespace() != Reference::KindNamespace::ELF)
return false;
assert(r.kindArch() == Reference::KindArch::x86_64);
Modified: lld/trunk/lib/ReaderWriter/MachO/Atoms.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/Atoms.h?rev=234419&r1=234418&r2=234419&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/Atoms.h (original)
+++ lld/trunk/lib/ReaderWriter/MachO/Atoms.h Wed Apr 8 12:08:27 2015
@@ -140,30 +140,24 @@ public:
_dylibInstallName(dylibInstallName) {}
virtual ~MachOSharedLibraryAtom() {}
- virtual StringRef loadName() const override {
- return _dylibInstallName;
- }
+ StringRef loadName() const override { return _dylibInstallName; }
- virtual bool canBeNullAtRuntime() const override {
+ bool canBeNullAtRuntime() const override {
// FIXME: this may actually be changeable. For now, all symbols are strongly
// defined though.
return false;
}
- virtual const File& file() const override {
- return _file;
- }
+ const File &file() const override { return _file; }
- virtual StringRef name() const override {
- return _name;
- }
+ StringRef name() const override { return _name; }
- virtual Type type() const override {
+ Type type() const override {
// Unused in MachO (I think).
return Type::Unknown;
}
- virtual uint64_t size() const override {
+ uint64_t size() const override {
// Unused in MachO (I think)
return 0;
}
More information about the llvm-commits
mailing list