Use a protected destructor instead of a virtual one.

llvm-svn: 280941
This commit is contained in:
Rafael Espindola 2016-09-08 14:11:08 +00:00
parent 55a7af7da5
commit 4d1e4d76ee
1 changed files with 3 additions and 1 deletions

View 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;