[lld] r299581 - Remove unnecessary virtual dtor.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 5 12:21:35 PDT 2017
Author: ruiu
Date: Wed Apr 5 14:21:35 2017
New Revision: 299581
URL: http://llvm.org/viewvc/llvm-project?rev=299581&view=rev
Log:
Remove unnecessary virtual dtor.
This class doesn't have virtual member functions, and no instances
of this class is deleted through base pointers.
Modified:
lld/trunk/ELF/LinkerScript.h
Modified: lld/trunk/ELF/LinkerScript.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.h?rev=299581&r1=299580&r2=299581&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.h (original)
+++ lld/trunk/ELF/LinkerScript.h Wed Apr 5 14:21:35 2017
@@ -68,9 +68,6 @@ enum SectionsCommandKind {
struct BaseCommand {
BaseCommand(int K) : Kind(K) {}
-
- virtual ~BaseCommand() = default;
-
int Kind;
};
More information about the llvm-commits
mailing list