[ELF] Fix multiple -mllvm after D70378
authorFangrui Song <i@maskray.me>
Tue, 29 Sep 2020 17:25:16 +0000 (10:25 -0700)
committerFangrui Song <i@maskray.me>
Tue, 29 Sep 2020 17:26:58 +0000 (10:26 -0700)
commit259bb61c118bd7d15c3329ffb2daa9ceaea7302f
treeb34c00524e84bd58c904c2d454afdfa1499b695f
parent388b068956d4f169e868e7990d1cbc6066c3990c
[ELF] Fix multiple -mllvm after D70378

Fixes https://reviews.llvm.org/D70378#2299569 Multiple -mllvm is intended to be supported.

We don't have a proper test for `-plugin-opt=-`. This patch adds the test as well.

Differential Revision: https://reviews.llvm.org/D88461
lld/ELF/Driver.cpp
lld/test/ELF/lto/mllvm.ll [new file with mode: 0644]