Allocate LayoutInputSections using SpecificBumpPtrAllocator.
llvm-svn: 278453
diff --git a/lld/ELF/LinkerScript.h b/lld/ELF/LinkerScript.h
index acc8e48..866326a 100644
--- a/lld/ELF/LinkerScript.h
+++ b/lld/ELF/LinkerScript.h
@@ -25,6 +25,7 @@
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 @@
typedef typename ELFT::uint uintX_t;
public:
+ LinkerScript();
+ ~LinkerScript();
void createSections(OutputSectionFactory<ELFT> &Factory);
std::vector<PhdrEntry<ELFT>> createPhdrs();
@@ -167,6 +170,8 @@
std::vector<size_t> getPhdrIndices(StringRef SectionName);
size_t getPhdrIndex(StringRef PhdrName);
+ llvm::SpecificBumpPtrAllocator<LayoutInputSection<ELFT>> LAlloc;
+
uintX_t Dot;
};