Make elf::ScriptConfig a LinkerScript class member variable.
authorRui Ueyama <ruiu@google.com>
Tue, 21 Mar 2017 23:03:09 +0000 (23:03 +0000)
committerRui Ueyama <ruiu@google.com>
Tue, 21 Mar 2017 23:03:09 +0000 (23:03 +0000)
commita34da93847cd62e630fdc7c995c712241f99aa32
tree59a018f6a8d1447ce59122a07111557e1605b933
parentb8dd23f56eafce73814903eaf8b286d9570bdd11
Make elf::ScriptConfig a LinkerScript class member variable.

LinkerScript used to be a template class, so we couldn't instantiate
that class in elf::link. We instantiated ScriptConfig class earlier
instead so that the linker script parser can store configurations to
the object.

Now that LinkerScript is not a template, it doesn't make sense to
separate ScriptConfig from LinkerScript. This patch merges them.

llvm-svn: 298457
lld/ELF/Driver.cpp
lld/ELF/LinkerScript.cpp
lld/ELF/LinkerScript.h
lld/ELF/Writer.cpp