summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LinkerScript.h
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-08-12 01:24:53 +0000
committerRui Ueyama <ruiu@google.com>2016-08-12 01:24:53 +0000
commitf34d0e0875ce48c68ccc746c873a5f379e6cb1b4 (patch)
treea27e27fe1d30587b76cf3d04dd252fd0937ba242 /lld/ELF/LinkerScript.h
parentbdf836db1b40e3513e510f9a8967901d09a86695 (diff)
downloadbcm5719-llvm-f34d0e0875ce48c68ccc746c873a5f379e6cb1b4.tar.gz
bcm5719-llvm-f34d0e0875ce48c68ccc746c873a5f379e6cb1b4.zip
Allocate LayoutInputSections using SpecificBumpPtrAllocator.
llvm-svn: 278453
Diffstat (limited to 'lld/ELF/LinkerScript.h')
-rw-r--r--lld/ELF/LinkerScript.h5
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;
};
OpenPOWER on IntegriCloud