]> granicus.if.org Git - clang/commit
Driver: Handle -flto, -O4, and tweak -emit-llvm to match llvm-gcc.
authorDaniel Dunbar <daniel@zuster.org>
Tue, 24 Mar 2009 20:17:30 +0000 (20:17 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 24 Mar 2009 20:17:30 +0000 (20:17 +0000)
commit337a6271b98c4c183f7eaad1563a75260b4f2871
treef9e5fed2fa784931122f02ae0f2a59d42ee38628
parent8dcb29db8483d4dcaeeecc0e653b642b0a41cd2c
Driver: Handle -flto, -O4, and tweak -emit-llvm to match llvm-gcc.
 - -emit-llvm no longer changes what compilation steps are done.

 - -emit-llvm and -emit-llvm -S write output files with .o and .s
    suffixes, respectively.

 - <rdar://problem/6714125> clang-driver should support -O4 and -flto,
   like llvm-gcc

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67645 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.def
include/clang/Driver/Types.def
lib/Driver/Driver.cpp
lib/Driver/Tools.cpp
test/Driver/lto.c [new file with mode: 0644]