[llvm-commits] patch: flush raw_ostream after AsmPrinting function

Dan Gohman gohman at apple.com
Fri Oct 31 13:52:20 PDT 2008


The real bug here, in my opinion, is that the new raw_ostream
version of stderr is buffered.

Dan

On Oct 31, 2008, at 9:42 AM, Preston Gurd wrote:

> When printing the generated assembly code for a function to a
> raw_ostream using the -print-emitted-asm option, flush the raw_ostream
> output to avoid the possibility of having the last partial buffer be
> separated from the rest of the generated code output by other output  
> to
> the same device, but using a different output stream.
>
> Since I do not have permission to commit to the llvm trunk, could  
> one of
> you please review and commit this (very small!) patch? Thanks!
>
> <flush.diff>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list