]> granicus.if.org Git - clang/commit
[HIP] Remove useless sections in linked files
authorYaxun Liu <Yaxun.Liu@amd.com>
Fri, 9 Nov 2018 18:52:05 +0000 (18:52 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Fri, 9 Nov 2018 18:52:05 +0000 (18:52 +0000)
commit1b6c047b6c36b3799dafc748f589afc735058089
tree8e3a766e5a26e61b9f3c6eda58894048896261d0
parent7e12b9765a105da269d3e41f2edc62ccdf7a4c35
[HIP] Remove useless sections in linked files

clang-offload-bundler creates __CLANG_OFFLOAD_BUNDLE__* sections in the bundles,
which get into the linked files. These sections are useless after linking. They waste disk
space and cause confusion for clang when directly linked with other object files, therefore
should be removed.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@346536 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/CommonArgs.cpp