[llvm-commits] [llvm] r77170 - in /llvm/trunk/tools/lto: LTOCodeGenerator.cpp LTOModule.cpp

Nick Lewycky nlewycky at google.com
Tue Jul 28 09:48:05 PDT 2009


2009/7/27 Dan Gohman <gohman at apple.com>

>
> On Jul 26, 2009, at 3:16 PM, Nick Lewycky wrote:
>
> > * flush the formatted_raw_ostream& or else not all of the assembly
> > will make
> >   it to the .s file. (It doesn't do this in its destructor?!)
>
> Hi Nick, this sounds like a bug. raw_ostream's subclasses should
> flush the buffer in their destructors. Or is the raw_ostream
> destructor not getting called?


I didn't investigate why. llc has the same code in it, copying it to lto
fixed my problem. Monkey see, monkey do.

I agree this is very likely a bug though. Can you reproduce it with llc if
you pull out the flush at the end (use a helloworld.bc built with -g)? Is it
a mac vs. linux issue?

Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090728/2746377a/attachment.html>


More information about the llvm-commits mailing list