[HIP][DRIVER][OFFLOAD] Do not unbundle unsupported file types
authorAaron Enye Shi <enye.shi@gmail.com>
Fri, 4 Jan 2019 19:09:20 +0000 (19:09 +0000)
committerAaron Enye Shi <enye.shi@gmail.com>
Fri, 4 Jan 2019 19:09:20 +0000 (19:09 +0000)
commit0743cda6d4d5f0c8ab2d5d44dc72ee453722b726
tree28642f2ff71af5ce8381c031b18d30a7f1117995
parentbea57bb5a480ae6492a1520e7e403e1587ef5888
[HIP][DRIVER][OFFLOAD] Do not unbundle unsupported file types

The offload bundler action should not unbundle the input file types that does not match the action type. This fixes an issue where .so files are unbundled when the action type is object files.

Reviewers: yaxunl

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

llvm-svn: 350426
clang/test/Driver/hip-link-shared-library.hip