[PATCH] D21006: [Driver] Make -flto -S emit assembly

Duncan P. N. Exon Smith via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 5 18:34:12 PDT 2016


I agree with Mehdi.  I expect `-S -flto` to give equivalent output to `-c -flto`.

In effect, with this change, `-flto -S` would silently ignore the `-flto` flag.  That doesn't make sense to me.

> On 2016-Jun-05, at 18:28, Mehdi AMINI <mehdi.amini at apple.com> wrote:
> 
> mehdi_amini added a comment.
> 
> What makes me not comfortable with this change is that after that  `-c` would not involves codegen but `-S` would.
> Indeed I am using sometimes `-flto -S` and I expect IR, that's what is the most logical to me considering what -c does.
> 
> 
> http://reviews.llvm.org/D21006
> 
> 
> 



More information about the cfe-commits mailing list