[lld] r280941 - Use a protected destructor instead of a virtual one.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 8 07:11:08 PDT 2016
Author: rafael
Date: Thu Sep 8 09:11:08 2016
New Revision: 280941
URL: http://llvm.org/viewvc/llvm-project?rev=280941&view=rev
Log:
Use a protected destructor instead of a virtual one.
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=280941&r1=280940&r2=280941&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.h (original)
+++ lld/trunk/ELF/LinkerScript.h Thu Sep 8 09:11:08 2016
@@ -124,8 +124,10 @@ struct PhdrsCommand {
};
class LinkerScriptBase {
+protected:
+ ~LinkerScriptBase() = default;
+
public:
- virtual ~LinkerScriptBase() = default;
virtual uint64_t getOutputSectionAddress(StringRef Name) = 0;
virtual uint64_t getOutputSectionSize(StringRef Name) = 0;
virtual uint64_t getOutputSectionAlign(StringRef Name) = 0;
More information about the llvm-commits
mailing list