[CUDA] Collapsed offload actions should not be top-level jobs.
authorArtem Belevich <tra@google.com>
Mon, 22 Aug 2016 18:50:34 +0000 (18:50 +0000)
committerArtem Belevich <tra@google.com>
Mon, 22 Aug 2016 18:50:34 +0000 (18:50 +0000)
commitbee2f41fac8384c052b20b116dea091b00b20aec
treec018685e2d0339fa3a153122d68bbd404cf6ac86
parent0fee97f8baf4c1942666df7adbfd07b6f8e8c904
[CUDA] Collapsed offload actions should not be top-level jobs.

If they are, we end up with the last intermediary output preserved
in the current directory after compilation.

Added a test case to verify that we're using appropriate filenames
for outputs of different phases.

Differential Revision: https://reviews.llvm.org/D23526

llvm-svn: 279455
clang/lib/Driver/Driver.cpp
clang/test/Driver/cuda-bindings.cu [new file with mode: 0644]