diff options
author | George Rimar <grimar@accesssoftek.com> | 2016-09-08 09:59:13 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2016-09-08 09:59:13 +0000 |
commit | 9fc6143a5b3fbfa44658836b60e85e4aaf0e0905 (patch) | |
tree | a8756b22b3fa405c76dd6b2ba25131eb4b9f3c9a | |
parent | 36fac7f0d0f7527ef2e15780fc41686629b930ad (diff) | |
download | bcm5719-llvm-9fc6143a5b3fbfa44658836b60e85e4aaf0e0905.tar.gz bcm5719-llvm-9fc6143a5b3fbfa44658836b60e85e4aaf0e0905.zip |
[ELF] - Add virtual destructor to LinkerScriptBase class. NFC.
Absence of it caused a clang warning:
warning: 'lld::elf::LinkerScriptBase' has virtual functions but non-virtual destructor [-Wnon-virtual-dtor]
At fact we don't need it here because do not destroy this object by
base pointer.
llvm-svn: 280916
-rw-r--r-- | lld/ELF/LinkerScript.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/ELF/LinkerScript.h b/lld/ELF/LinkerScript.h index a3732eef053..f62e5bd6a3c 100644 --- a/lld/ELF/LinkerScript.h +++ b/lld/ELF/LinkerScript.h @@ -125,6 +125,7 @@ struct PhdrsCommand { class LinkerScriptBase { 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; |