summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LinkerScript.h
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/LinkerScript.h')
-rw-r--r--lld/ELF/LinkerScript.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/lld/ELF/LinkerScript.h b/lld/ELF/LinkerScript.h
index 4b1f2671b06..ec1bd8805c9 100644
--- a/lld/ELF/LinkerScript.h
+++ b/lld/ELF/LinkerScript.h
@@ -128,8 +128,8 @@ template <class ELFT> class LinkerScript {
typedef typename ELFT::uint uintX_t;
public:
- std::vector<OutputSectionBase<ELFT> *>
- createSections(OutputSectionFactory<ELFT> &Factory);
+ void createSections(std::vector<OutputSectionBase<ELFT> *> *Out,
+ OutputSectionFactory<ELFT> &Factory);
std::vector<PhdrEntry<ELFT>>
createPhdrs(ArrayRef<OutputSectionBase<ELFT> *> S);
@@ -140,6 +140,7 @@ public:
int compareSections(StringRef A, StringRef B);
void addScriptedSymbols();
bool hasPhdrsCommands();
+ uintX_t getOutputSectionSize(StringRef Name);
private:
std::vector<std::pair<StringRef, const InputSectionDescription *>>
@@ -151,13 +152,13 @@ private:
// "ScriptConfig" is a bit too long, so define a short name for it.
ScriptConfiguration &Opt = *ScriptConfig;
- std::vector<OutputSectionBase<ELFT> *>
- filter(std::vector<OutputSectionBase<ELFT> *> &Sections);
+ void filter();
int getSectionIndex(StringRef Name);
std::vector<size_t> getPhdrIndices(StringRef SectionName);
size_t getPhdrIndex(StringRef PhdrName);
+ std::vector<OutputSectionBase<ELFT> *> *OutputSections;
uintX_t Dot;
};
OpenPOWER on IntegriCloud