[lld] r185657 - Don't pass llvm::errs() all over the place. Diagnostics always go to stderr.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Jul 4 20:45:36 PDT 2013


On 4 July 2013 23:31, Craig Topper <craig.topper at gmail.com> wrote:
> Don't the majority of clang's diagnostics go through the DiagnosticsEngine
> which is itself controllable as to where it goes?

For diagnostics Clang is even fancier, it has a DiagnosticConsumer
that provides a higher level interface than a stream. The difference
is that it is actually used. The code I deleted was dead.

If we ever need to implement something like -verify for linker
scripts, that is probably the way to go, but we should cross that
bridge when we get there (and make sure it is tested).

Cheers,
Rafael



More information about the llvm-commits mailing list