[PATCH][Clang Driver] Driver::IsUsingLTO no longer return true when seeing -emit-llvm

Shuxin Yang shuxin.llvm at gmail.com
Thu Aug 22 12:28:07 PDT 2013


On 8/22/13 10:34 AM, Eric Christopher wrote:
>
> Right. My comment on this change is, in essence, that people have
> depended upon the fact that -flto does what you want -emit-llvm to do
> for that compile line for a while. I don't think it's necessarily
> right, but that you're going to be breaking current use.
>
> -eric

I saw one such use in clang's testing suite. I have already fixed the 
problem.
I think in general we should avoid "clang -emit-llvm a.c" without -S or -c,
as it is bit confusing.



More information about the llvm-commits mailing list