Displaying 2 results from an estimated 2 matches for "8989238e".
2012 Nov 29
0
[LLVMdev] Different behavoir when writing to stdout with 2 raw_fd_ostreams with or w/o redirection
...o avoid this
problem, as global destructor ordering is inconvenient to control. In
general, it's best to try to avoid this situation altogether.
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121129/8989238e/attachment.html>
2012 Nov 29
3
[LLVMdev] Different behavoir when writing to stdout with 2 raw_fd_ostreams with or w/o redirection
Dear all,
Consider there is a program that writes to stdout using two different
raw_fd_ostream-s:
#include "llvm/LLVMContext.h"
#include "llvm/Module.h"
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
int main()
{
raw_fd_ostream S(STDOUT_FILENO, false);
outs() << "Hello";
S << ", world!";