[DRIVER][OFFLOAD] Do not invoke unbundler on unsupported file types.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 28 Sep 2018 16:17:59 +0000 (16:17 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 28 Sep 2018 16:17:59 +0000 (16:17 +0000)
commita5178f5369c499669055e546b87f23a7beb67f26
tree94be0c2156739a668e51dd48c9ce80247bc6e76d
parentd22ee9461fd828b4afb6db331307416ab14e6b36
[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: 343335
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