[PDB] Don't include input files in the 'cmd' entry of S_ENVBLOCK
authorSylvain Audi <sylvain.audi@ubisoft.com>
Wed, 9 Nov 2022 15:01:55 +0000 (10:01 -0500)
committerSylvain Audi <sylvain.audi@ubisoft.com>
Mon, 14 Nov 2022 16:31:01 +0000 (11:31 -0500)
commitdf2f9e57f8d1aa858b12aefb89909a7c88c6e0ea
tree8bddbddfd73d3c3204894f6d11e1a57a3713ec5c
parent7e786857526eb97317c92c3f5a529b443120eb93
[PDB] Don't include input files in the 'cmd' entry of S_ENVBLOCK

MSVC records the command line arguments in S_ENVBLOCK, skipping the input file arguments.
This patch adds this filtering on lld-link side.

Differential Revision: https://reviews.llvm.org/D137723
lld/COFF/DriverUtils.cpp
lld/docs/ReleaseNotes.rst
lld/test/COFF/pdb-linker-module.test
lld/test/COFF/pdb-relative-source-lines.test