[MinGW] Implement the GNU ld options -S/--strip-debug
authorMartin Storsjo <martin@martin.st>
Fri, 29 Jun 2018 06:08:31 +0000 (06:08 +0000)
committerMartin Storsjo <martin@martin.st>
Fri, 29 Jun 2018 06:08:31 +0000 (06:08 +0000)
commitc0826745cfdc9a2a4d10c676af2210f7103108eb
tree14ab92c4c732e330539411de10757bfb75403684
parent3a7905b2aac4931b1981193bf99ca915fe474139
[MinGW] Implement the GNU ld options -S/--strip-debug

In this mode, we retain the symbol table, but skip the actual debug
information.

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

llvm-svn: 335947
lld/MinGW/Driver.cpp
lld/MinGW/Options.td
lld/test/MinGW/driver.test