llvm-project/lld/lib/Driver
James Y Knight d3fec7fb45 LLD: Don't use the stderrOS stream in link before it's reassigned.
Remove the lld::enableColors function, as it just obscures which
stream it's affecting, and replace with explicit calls to the stream's
enable_colors.

Also, assign the stderrOS and stdoutOS globals first in link function,
just to ensure nothing might use them.

(Either change individually fixes the issue of using the old
stream, but both together seems best.)

Follow-up to b11386f9be.

Differential Revision: https://reviews.llvm.org/D70492
2019-11-21 10:55:03 -05:00
..
CMakeLists.txt [Darwin] Use errorHandler from liblldCommon 2018-06-12 02:34:04 +00:00
DarwinLdDriver.cpp LLD: Don't use the stderrOS stream in link before it's reassigned. 2019-11-21 10:55:03 -05:00
DarwinLdOptions.td [Darwin] Do not error on '-lto_library' option 2018-06-13 18:59:14 +00:00