[PATCH] D81156: [Support] Create a tied stream class and use it for errs()
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 4 06:31:27 PDT 2020
jhenderson created this revision.
jhenderson added reviewers: labath, dblaikie, probinson, JDevlieghere, ikudrin, MaskRay.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
errs() is now tied to outs() so that if something prints to errs(), outs() will be flushed before the printing occurs. This avoids interleaving output between the two.
Other clients can use the tied_raw_ostream class to achieve the same effect for other combinations of streams.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D81156
Files:
llvm/include/llvm/Support/raw_ostream.h
llvm/lib/Support/raw_ostream.cpp
llvm/unittests/Support/raw_ostream_test.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81156.268451.patch
Type: text/x-patch
Size: 6523 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200604/5bddbc7e/attachment.bin>
More information about the llvm-commits
mailing list