summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LinkerScript.cpp
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2017-03-14 09:03:53 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2017-03-14 09:03:53 +0000
commit2d2621090dfd0421d5a473b82f755b2033b0b068 (patch)
tree8f40003858b7bacb0ec095da7a49bcb0570b2297 /lld/ELF/LinkerScript.cpp
parent5784e96f5c464dc483ca179fda6ae4406c4cfd78 (diff)
downloadbcm5719-llvm-2d2621090dfd0421d5a473b82f755b2033b0b068.tar.gz
bcm5719-llvm-2d2621090dfd0421d5a473b82f755b2033b0b068.zip
[ELF] - Step to combine LinkerScript and LinkerScriptBase
We can move all not templated functionality to LinkerScriptBase. Patch do that for hasPhdrsCommands() and shows how it helps to detemplate things in other places. Probably we should be able to merge these 2 classes into single one after such steps. Even if not, it still looks as reasonable cleanup for me. Differential revision: https://reviews.llvm.org/D30895 llvm-svn: 297714
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
-rw-r--r--lld/ELF/LinkerScript.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index 7f68b5b6e46..85312fb165c 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -792,7 +792,7 @@ void LinkerScript<ELFT>::assignAddresses(std::vector<PhdrEntry> &Phdrs) {
Sec->Addr = 0;
}
- allocateHeaders<ELFT>(Phdrs, *OutputSections, MinVA);
+ allocateHeaders(Phdrs, *OutputSections, MinVA);
}
// Creates program headers as instructed by PHDRS linker script command.
@@ -902,10 +902,6 @@ template <class ELFT> int LinkerScript<ELFT>::getSectionIndex(StringRef Name) {
return INT_MAX;
}
-template <class ELFT> bool LinkerScript<ELFT>::hasPhdrsCommands() {
- return !Opt.PhdrsCommands.empty();
-}
-
template <class ELFT>
OutputSection *LinkerScript<ELFT>::getOutputSection(const Twine &Loc,
StringRef Name) {
OpenPOWER on IntegriCloud