<div class="gmail_quote">2009/7/27 Dan Gohman <span dir="ltr"><<a href="mailto:gohman@apple.com">gohman@apple.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="im"><br>
On Jul 26, 2009, at 3:16 PM, Nick Lewycky wrote:<br>
<br>
> * flush the formatted_raw_ostream& or else not all of the assembly<br>
> will make<br>
>   it to the .s file. (It doesn't do this in its destructor?!)<br>
<br>
</div>Hi Nick, this sounds like a bug. raw_ostream's subclasses should<br>
flush the buffer in their destructors. Or is the raw_ostream<br>
destructor not getting called?</blockquote><div><br>I didn't investigate why. llc has the same code in it, copying it to lto fixed my problem. Monkey see, monkey do.<br><br>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?<br>

<br>Nick</div></div><br>