[PATCH] D41033: Use ErrorOS for log messages as well as error

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 8 16:33:52 PST 2017


This patch shouldn't change the --version behavior.

On Fri, Dec 8, 2017 at 4:32 PM, Rafael Avila de Espindola via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> For what it is worth, both ld.bfd --version and ld.gold --version print
> to stdout.
>
> Cheers,
> Rafael
>
> Rui Ueyama via Phabricator via llvm-commits
> <llvm-commits at lists.llvm.org> writes:
>
> > ruiu added a comment.
> >
> > I agree that log should go to stderr, but I think message should still
> go to stdout. We have that function to print out a regular message, such as
> printing out version information or some hint message. We have this
> function mainly because we want to acquire the global lock before printing
> out something in the multithreaded environment.
> >
> >
> > Repository:
> >   rLLD LLVM Linker
> >
> > https://reviews.llvm.org/D41033
> >
> >
> >
> > _______________________________________________
> > llvm-commits mailing list
> > llvm-commits at lists.llvm.org
> > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171208/b1ee313e/attachment.html>


More information about the llvm-commits mailing list