<div dir="ltr"><div class="gmail_quote">On Wed, Mar 4, 2015 at 6:06 PM Ed Maste <<a href="mailto:emaste@freebsd.org">emaste@freebsd.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 4 March 2015 at 20:48, Enrico Granata <<a href="mailto:egranata@apple.com" target="_blank" class="cremed">egranata@apple.com</a>> wrote:<br>
><br>
> In this case we could get away with the lesser interface (FILE*), that’s<br>
> true. However, if - say - we ended up deciding that the output of<br>
> lldbassert() should go to the user’s terminal AND to a log file, this would<br>
> be trivial to do with a StreamTee, but it would require more fiddling with a<br>
> FILE*<br>
<br>
The same argument can be made for adding that functionality in the<br>
LLVM implementation, I think. If there's value of having the output go<br>
to multiple sources, for example, other LLVM projects could also<br>
benefit from it.</blockquote><div><br></div><div>Absolutely, 100%, yes.</div><div><span style="font-size:13.1999998092651px"><br></span></div><div><span style="font-size:13.1999998092651px">I think it is tremendously important for LLDB, LLD, and every other subproject to reuse core infrastructure like this wherever possible. That is *not* because I believe that the core infrastructure is perfect! It is because we need to collect all of the improvements each project needs and share both the implementation cost and the benefits that they bring across the projects. That is really key to making the entire project as a whole scale. </span><br></div></div></div>