Simplify output section ownership.
authorRui Ueyama <ruiu@google.com>
Wed, 20 Jul 2016 17:19:03 +0000 (17:19 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 20 Jul 2016 17:19:03 +0000 (17:19 +0000)
commita7f7884df82c2ea5069a5a51622147f6553d1cff
tree18140c1f84a9deacb526966593b59fda02d7ac15
parent683170bf561dcaf79edccac3291319a023c7c0ca
Simplify output section ownership.

This patch simplifies output section management by making
Factory class have ownership of sections that creates.

Differential Revision: https://reviews.llvm.org/D22575

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