[lld] r231329 - Remove redundant virtual destructor.

Rui Ueyama ruiu at google.com
Wed Mar 4 16:55:04 PST 2015


Author: ruiu
Date: Wed Mar  4 18:55:04 2015
New Revision: 231329

URL: http://llvm.org/viewvc/llvm-project?rev=231329&view=rev
Log:
Remove redundant virtual destructor.

DefinedAtom, which is the base class of ELFCommonAtom, has a
virtual destructor, so this is redundant.

Modified:
    lld/trunk/lib/ReaderWriter/ELF/Atoms.h

Modified: lld/trunk/lib/ReaderWriter/ELF/Atoms.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Atoms.h?rev=231329&r1=231328&r2=231329&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Atoms.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Atoms.h Wed Mar  4 18:55:04 2015
@@ -601,10 +601,8 @@ public:
     const void *it = reinterpret_cast<const void *>(index);
     return reference_iterator(*this, it);
   }
-protected:
-
-  virtual ~ELFCommonAtom() {}
 
+protected:
   const Reference *derefIterator(const void *iter) const override {
     return nullptr;
   }





More information about the llvm-commits mailing list