Simplify output section ownership management.
authorRui Ueyama <ruiu@google.com>
Fri, 12 Aug 2016 01:10:17 +0000 (01:10 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 12 Aug 2016 01:10:17 +0000 (01:10 +0000)
commitbdf836db1b40e3513e510f9a8967901d09a86695
treed3611fd1182e91aa46245a44e88e7112d0c539fa
parenta6707f56b549489070f60f4efe1da2e4522873d5
Simplify output section ownership management.

One reason why we are (ab)using OutputSectionFactory class is
because it owns output sections. Technically there's no need
to have it own sections. So, this patch transfers the ownership
to Out<ELFT>.

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