Move OutputSectionFactory to LinkerScript.cpp. NFC.
authorRui Ueyama <ruiu@google.com>
Sat, 4 Nov 2017 23:54:25 +0000 (23:54 +0000)
committerRui Ueyama <ruiu@google.com>
Sat, 4 Nov 2017 23:54:25 +0000 (23:54 +0000)
commitaa8523e4b6de7e466456c92c0dbd69ae658b87eb
tree0868ffd4bc88d4e48b55dda689a5a4d23de85f83
parentdc0b0b0df311007b1ac2dcfb9bec7df938e8561f
Move OutputSectionFactory to LinkerScript.cpp. NFC.

That class is used only by LinkerScript.cpp, so we should move it to
that file. Also, it no longer has to be a "factory" class. It can just
be a non-member function.

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