[PATCH] D54275: [HIP] Remove useless sections in linked files

2018-11-09 Thread Yaxun Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC346536: [HIP] Remove useless sections in linked files (authored by yaxunl, committed by ). Repository: rC Clang https://reviews.llvm.org/D54275 Files: lib/Driver/ToolChains/CommonArgs.cpp Index:

[PATCH] D54275: [HIP] Remove useless sections in linked files

2018-11-08 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl created this revision. yaxunl added a reviewer: tra. 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