[DRIVER][OFFLOAD] Do not invoke unbundler on unsupported file types.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 25 Sep 2018 17:09:17 +0000 (17:09 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 25 Sep 2018 17:09:17 +0000 (17:09 +0000)
commit464ab241e7e613002d6749c32183c01c6f3c0525
treebd0de71950262550de5c6188cdfa863b162c9584
parent28e7e60ea4d176e9fffb15101b62d29d862ef370
[DRIVER][OFFLOAD] Do not invoke unbundler on unsupported file types.

clang-offload-bundler should not be invoked with the unbundling action
when the input file type does not match the action type. For example,
.so files should be unbundled during linking phase and should be linked
only with the host code.

llvm-svn: 342991
clang/lib/Driver/Driver.cpp
clang/test/Driver/Inputs/in.so [new file with mode: 0644]
clang/test/Driver/openmp-offload-gpu.c
clang/test/Driver/openmp-offload.c