r188406 - Do no use -emit-llvm for -flto.
Shuxin Yang
shuxin.llvm at gmail.com
Wed Aug 14 13:09:53 PDT 2013
Thanks, fixed in 188408
On 8/14/13 1:03 PM, Richard Smith wrote:
> On Wed, Aug 14, 2013 at 12:45 PM, Shuxin Yang <shuxin.llvm at gmail.com
> <mailto:shuxin.llvm at gmail.com>> wrote:
>
> Author: shuxin_yang
> Date: Wed Aug 14 14:45:49 2013
> New Revision: 188406
>
> URL: http://llvm.org/viewvc/llvm-project?rev=188406&view=rev
> Log:
> Do no use -emit-llvm for -flto.
>
> Tested on multiple OSes.
>
> Modified:
> cfe/trunk/test/Driver/lto.c
>
> Modified: cfe/trunk/test/Driver/lto.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/lto.c?rev=188406&r1=188405&r2=188406&view=diff
> ==============================================================================
> --- cfe/trunk/test/Driver/lto.c (original)
> +++ cfe/trunk/test/Driver/lto.c Wed Aug 14 14:45:49 2013
> @@ -1,11 +1,10 @@
> -// -emit-llvm, -flto, and -O4 all cause a switch to llvm-bc
> object files.
> +// -flto, and -O4 all cause a switch to llvm-bc object files.
>
>
> "-flto and -O4 both cause [...]"
>
> // RUN: %clang -ccc-print-phases -c %s -flto 2> %t.log
> // RUN: grep '2: compiler, {1}, lto-bc' %t.log
> // RUN: %clang -ccc-print-phases -c %s -O4 2> %t.log
> // RUN: grep '2: compiler, {1}, lto-bc' %t.log
>
> -// and -emit-llvm doesn't alter pipeline (unfortunately?).
> -// RUN: %clang -ccc-print-phases %s -emit-llvm 2> %t.log
> +// RUN: %clang -ccc-print-phases %s -flto 2> %t.log
> // RUN: grep '0: input, ".*lto.c", c' %t.log
> // RUN: grep '1: preprocessor, {0}, cpp-output' %t.log
> // RUN: grep '2: compiler, {1}, lto-bc' %t.log
> @@ -13,11 +12,11 @@
>
> // llvm-bc and llvm-ll outputs need to match regular suffixes
> // (unfortunately).
> -// RUN: %clang %s -emit-llvm -save-temps -### 2> %t.log
> +// RUN: %clang %s -flto -save-temps -### 2> %t.log
> // RUN: grep '"-o" ".*lto\.i" "-x" "c" ".*lto\.c"' %t.log
> // RUN: grep '"-o" ".*lto\.o" .*".*lto\.i"' %t.log
> // RUN: grep '".*a.out" .*".*lto\.o"' %t.log
>
> -// RUN: %clang %s -emit-llvm -S -### 2> %t.log
> +// RUN: %clang %s -flto -S -### 2> %t.log
> // RUN: grep '"-o" ".*lto\.s" "-x" "c" ".*lto\.c"' %t.log
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu <mailto:cfe-commits at cs.uiuc.edu>
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130814/569ec9f9/attachment.html>
More information about the cfe-commits
mailing list