projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55a7af7
)
Use a protected destructor instead of a virtual one.
author
Rafael Espindola
<rafael.espindola@gmail.com>
Thu, 8 Sep 2016 14:11:08 +0000
(14:11 +0000)
committer
Rafael Espindola
<rafael.espindola@gmail.com>
Thu, 8 Sep 2016 14:11:08 +0000
(14:11 +0000)
llvm-svn: 280941
lld/ELF/LinkerScript.h
patch
|
blob
|
history
diff --git
a/lld/ELF/LinkerScript.h
b/lld/ELF/LinkerScript.h
index
f62e5bd
..
3849b47
100644
(file)
--- 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;