[ELF] Fix the bug -- LLD crashes if the --whole-archive option
is around non-archive.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210530 91177308-0d34-0410-b5e6-96231b3b80d8
[ELF] Fix typo in the type name of the range-based loop item.

No functional changes.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210531 91177308-0d34-0410-b5e6-96231b3b80d8
[ReaderWriter] Simplify initialization of class fields.

No functional changes.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@210532 91177308-0d34-0410-b5e6-96231b3b80d8