[ELF] - Move section factory out from writer to make it reusable.
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 12 Jul 2016 08:38:04 +0000 (08:38 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 12 Jul 2016 08:38:04 +0000 (08:38 +0000)
commite51f7f4d3944d9e784f8a17cec89b3ad77895e98
treeaec1284ba00d5dc119ff2f0e5f589017931b265f
parent7968c3458690af5c8ba8495f460dd5b3c7f525fb
[ELF] - Move section factory out from writer to make it reusable.

Since linkerscript should create sections by itself
(if SECTIONS command is present),
then we might want to reuse the OutputSectionFactory (D19976 already do that now),
so this patch moves it out from writer cpp file for that purpose.

Differential revision: http://reviews.llvm.org/D19977

llvm-svn: 275161
lld/ELF/OutputSections.cpp
lld/ELF/OutputSections.h
lld/ELF/Writer.cpp