Use a protected destructor instead of a virtual one.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 8 Sep 2016 14:11:08 +0000 (14:11 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 8 Sep 2016 14:11:08 +0000 (14:11 +0000)
llvm-svn: 280941

lld/ELF/LinkerScript.h

index f62e5bd..3849b47 100644 (file)
@@ -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;