Fix /WholeArchive bug.
authorRui Ueyama <ruiu@google.com>
Tue, 12 Jun 2018 21:47:31 +0000 (21:47 +0000)
committerRui Ueyama <ruiu@google.com>
Tue, 12 Jun 2018 21:47:31 +0000 (21:47 +0000)
commit4eed6cc43369e2f29a9f4ddfe843fb126657923b
treea9256fb196853192d0132c243feb491af87aad52
parent651ef359ab1ca11a99de4f5e8fd312fdbec9be24
Fix /WholeArchive bug.

`lld-link foo.lib /wholearchive:foo.lib` should work the same way as
`lld-link /wholearchive:foo.lib foo.lib`. Previously, /wholearchive in
the former case was ignored.

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

llvm-svn: 334552
lld/COFF/Driver.cpp
lld/COFF/Driver.h
lld/test/COFF/wholearchive.s