[llvm-dev] raw_pwrite_stream to string or stdout?

Yaron Keren via llvm-dev llvm-dev at lists.llvm.org
Fri Feb 19 23:14:49 PST 2016


raw_string_ostream is an adaptor for std::string.
raw_svector_ostream is more efficient adaptor for llvm::SmallString.
outs() will not work as it can't seek.


2016-02-19 23:16 GMT+02:00 Frank Winter via llvm-dev <
llvm-dev at lists.llvm.org>:

> TargetMachine::addPassesToEmitFile(..)
> requires as its 2nd argument an raw_pwrite_stream.
>
> Is it possible to create such a thing which either writes into a standard
> string or streams to outs() ?
>
> Thanks,
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160220/868fa24a/attachment.html>


More information about the llvm-dev mailing list