<div dir="ltr">On Wed, Aug 14, 2013 at 3:16 PM, Nick Kledzik <span dir="ltr"><<a href="mailto:kledzik@apple.com" target="_blank">kledzik@apple.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div class="im">On Aug 14, 2013, at 3:00 PM, Dan Gohman <<a href="mailto:dan433584@gmail.com" target="_blank">dan433584@gmail.com</a>> wrote:<br>
</div><div><div class="im"><blockquote type="cite"><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<div dir="ltr">Standard error is what many tools, including clang for example, use for their --verbose output. This is appropriate because it leaves standard output available for regular output data, which the user may wish to capture in a file or a pipe.</div>
</div></blockquote></div><div>Well, at least with the darwin linker, the linker main output goes to a file (specified by -o or “a.out”). So, since there is normally nothing going to stdout, -v and -t output goes to stdout.</div>
<div><br></div><div>Shankar, although not quite as convenient, we could change the core linker test cases from:</div><div>      lld … | FileCheck </div><div>to:</div><div>     lld …  -o %t && FileCheck < %t</div>
<div>Then change the core linker to not use “-“, but error if -o is not supplied.</div></div></div></blockquote><div><br></div><div>It's a very common lit test pattern to do 'clang/llc %s ... -o - | FileCheck %s ', and lld should probably support that.  It should be just a matter of avoiding outs().</div>
</div></div></div>