diff options
Diffstat (limited to 'lld/ELF/LinkerScript.h')
-rw-r--r-- | lld/ELF/LinkerScript.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lld/ELF/LinkerScript.h b/lld/ELF/LinkerScript.h index acc8e483950..866326ab82e 100644 --- a/lld/ELF/LinkerScript.h +++ b/lld/ELF/LinkerScript.h @@ -25,6 +25,7 @@ template <class ELFT> class InputSectionBase; template <class ELFT> class OutputSectionBase; template <class ELFT> class OutputSectionFactory; template <class ELFT> class DefinedCommon; +template <class ELFT> class LayoutInputSection; typedef std::function<uint64_t(uint64_t)> Expr; @@ -138,6 +139,8 @@ template <class ELFT> class LinkerScript { typedef typename ELFT::uint uintX_t; public: + LinkerScript(); + ~LinkerScript(); void createSections(OutputSectionFactory<ELFT> &Factory); std::vector<PhdrEntry<ELFT>> createPhdrs(); @@ -167,6 +170,8 @@ private: std::vector<size_t> getPhdrIndices(StringRef SectionName); size_t getPhdrIndex(StringRef PhdrName); + llvm::SpecificBumpPtrAllocator<LayoutInputSection<ELFT>> LAlloc; + uintX_t Dot; }; |