aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2020-12-14 17:46:11 -0800
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2021-01-26 15:20:43 -0800
commit2f721476d10c1cc7a5336650a85012f78c94d33a (patch)
tree3d57a648621def8e4b24e73102024f94a318d985 /llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
parentf36007e8110174ea10294f6fa546f3c64f0e548a (diff)
downloadllvm-2f721476d10c1cc7a5336650a85012f78c94d33a.zip
llvm-2f721476d10c1cc7a5336650a85012f78c94d33a.tar.gz
llvm-2f721476d10c1cc7a5336650a85012f78c94d33a.tar.bz2
Frontend: Simplify handling of non-seeking streams in CompilerInstance, NFC
Add a new `raw_pwrite_ostream` variant, `buffer_unique_ostream`, which is like `buffer_ostream` but with unique ownership of the stream it's wrapping. Use this in CompilerInstance to simplify the ownership of non-seeking output streams, avoiding logic sprawled around to deal with them specially. This also simplifies future work to encapsulate output files in a different class. Differential Revision: https://reviews.llvm.org/D93260
Diffstat (limited to 'llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp')
0 files changed, 0 insertions, 0 deletions