From 4d1e4d76ee4636b6605e6d119322b767efc93b70 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 8 Sep 2016 14:11:08 +0000 Subject: [PATCH] Use a protected destructor instead of a virtual one. llvm-svn: 280941 --- lld/ELF/LinkerScript.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lld/ELF/LinkerScript.h b/lld/ELF/LinkerScript.h index f62e5bd..3849b47 100644 --- a/lld/ELF/LinkerScript.h +++ b/lld/ELF/LinkerScript.h @@ -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; -- 2.7.4