[CUDA] Add --cuda-compile-host-device, which overrides --cuda-host-only and --cuda...
authorJustin Lebar <jlebar@google.com>
Tue, 19 Apr 2016 02:27:07 +0000 (02:27 +0000)
committerJustin Lebar <jlebar@google.com>
Tue, 19 Apr 2016 02:27:07 +0000 (02:27 +0000)
commitdc3c50434ec5f183b60d4b71e08d39f326093b89
treeaca8e707a4b4f9b5fc93d08ab5fa4c5c85fce9aa
parentd66dc19251d0304dd159d8f013760e852db50bbd
[CUDA] Add --cuda-compile-host-device, which overrides --cuda-host-only and --cuda-device-only.

Summary:
This completes the flag's tristate, letting you override it at will on
the command line.

Reviewers: tra

Subscribers: cfe-commits, jhen

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

llvm-svn: 266707
clang/include/clang/Driver/Options.td
clang/lib/Driver/Driver.cpp
clang/test/Driver/cuda-options.cu
clang/test/Driver/cuda-unused-arg-warning.cu