[cfe-dev] changing -save-temps to keep bitcode?

Reid Kleckner rnk at google.com
Mon Dec 15 14:50:40 PST 2014


On Mon, Dec 15, 2014 at 1:09 PM, Diego Novillo <dnovillo at google.com> wrote:
>
> On 12/15/14 15:10, Joerg Sonnenberger wrote:
>
>> On Mon, Dec 15, 2014 at 11:26:43AM -0800, Bob Wilson wrote:
>>
>>> Does anyone have interest in this or objections to it?
>>>
>>
>> Yes, please. Especially if it captures the bitcode *before* any of the
>> optimisations hit.
>>
>
> Agreed. On several occasions, I've found myself wondering how I can
> generate bitcode exactly as it leaves the parser, before any early cleanups
> and such.


Yep. It's possible to do this with '-emit-llvm -mllvm
-disable-llvm-optzns', but this is way harder than just -save-temps. If
-save-temps makes .s files that aren't part of normal compilation, we can
afford to make .ll files that aren't part of normal compilation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141215/4562501e/attachment.html>


More information about the cfe-dev mailing list