This is an archive of the discontinued LLVM Phabricator instance.

Support: Add proxies for raw_ostream and raw_pwrite_stream
Needs ReviewPublic

Authored by steven_wu on Sep 8 2022, 9:33 AM.



Add proxies classes for raw_ostream and raw_pwrite_stream called
raw_ostream_proxy and raw_pwrite_stream_proxy. Add adaptor classes,
raw_ostream_proxy_adaptor<> and raw_pwrite_stream_proxy_adaptor<>,
to allow subclasses to use a different parent class than raw_ostream
or raw_pwrite_stream.

The adaptors are used by a future patch to help a subclass of
llvm::vfs::OutputFile, an abstract subclass of raw_pwrite_stream, to
proxy a raw_fd_ostream.

Patched by dexonsmith.

Diff Detail