]> granicus.if.org Git - clang/commit
[CUDA] Handle -O options (more) correctly.
authorJustin Lebar <jlebar@google.com>
Tue, 19 Jan 2016 19:52:21 +0000 (19:52 +0000)
committerJustin Lebar <jlebar@google.com>
Tue, 19 Jan 2016 19:52:21 +0000 (19:52 +0000)
commitd79077e1574d20d7e444ef09b579d040497544bf
tree59bf12124a15288100cd356a7a938dc18521e235
parentfaeccf347ca1aae1b3bce607766970ee5329200c
[CUDA] Handle -O options (more) correctly.

Summary:
Previously we'd crash the driver if you passed -O0.  Now we try to
handle all of clang's various optimization flags in a sane way.

Reviewers: tra

Subscribers: cfe-commits, echristo, jhen

Differential Revision: http://reviews.llvm.org/D16307

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@258174 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
test/Driver/cuda-external-tools.cu