[LLD] [MinGW] Print the lld-link command to stderr
authorMartin Storsjö <martin@martin.st>
Fri, 18 Jun 2021 11:33:28 +0000 (14:33 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 23 Jun 2021 07:21:42 +0000 (10:21 +0300)
commitfdf54f5c506a12ca509b5af0967347a2848b3b77
tree60b123c0080b9c9a85d214e2bf57bc524dcf35ab
parenta21a6f51bcd54f04ec35a515af28260dc3374189
[LLD] [MinGW] Print the lld-link command to stderr

This is consistent with how clang prints its internal commands with
-### and -v.

When linking with -verbose, we get log messages from the actual
linking written to stderr. By printing the command to the same stream,
we make sure they appear in a sensible chronological order.

Differential Revision: https://reviews.llvm.org/D104527
lld/MinGW/Driver.cpp
lld/test/MinGW/driver.test
lld/test/MinGW/lib.test