ELF: Create LinkerScript class to move code out of Writer.
authorRui Ueyama <ruiu@google.com>
Thu, 11 Feb 2016 21:17:59 +0000 (21:17 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 11 Feb 2016 21:17:59 +0000 (21:17 +0000)
commit717677af35b2a6a69242f337880923734ab4c67f
treef7142d8fec905d116d080ed2262744b739ea3500
parent8fd6718700449a39c1af00a32569950fa4d501c0
ELF: Create LinkerScript class to move code out of Writer.

Previously, we had code for linker scripts in Writer. This patch
separates that as LinkerScript class. The class provides a few
functions to query linker scripts and is also a container of some
linker-script-specific information.

Hopefully, Writer will only implement the default behavior and let
the new class handle gotchas regarding linker scripts.

llvm-svn: 260591
lld/ELF/Config.h
lld/ELF/Driver.cpp
lld/ELF/LinkerScript.cpp
lld/ELF/LinkerScript.h [new file with mode: 0644]
lld/ELF/Writer.cpp