Some options like /pdb: or /out: or /implib: take a filename or path on the right side. When using partial or full paths with these options, previously this resulted in the paths not being translated relative-to-root by /linkrepro:
$ lld-link /pdb:"F:\some\path\mypdb.pdb" /out:"relative\..\..\real\output\file.exe" /implib:a.lib ... /linkrepro:.
The generated response file might have now non-existent paths on the reproducer's machine:
/pdb:"F:\some\path\mypdb.pdb" /out:"relative\..\..\real\output\file.exe" /out:a.lib ...
With this patch, the response is fully reproducible/usable as expected:
/pdb:mypdb.pdb /out:file.exe /implib:a.lib ...
Let's just write out what you want here, instead of adding a variable and a new helper function.