[PATCH] D54275: [HIP] Remove useless sections in linked files
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 9 10:54:33 PST 2018
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: lib/Driver/ToolChains/CommonArgs.cpp
===================================================================
--- lib/Driver/ToolChains/CommonArgs.cpp
+++ lib/Driver/ToolChains/CommonArgs.cpp
@@ -1436,6 +1436,10 @@
LksStream << " PROVIDE_HIDDEN(__hip_fatbin = .);\n";
LksStream << " " << BundleFileName << "\n";
LksStream << " }\n";
+ LksStream << " /DISCARD/ :\n";
+ LksStream << " {\n";
+ LksStream << " * ( __CLANG_OFFLOAD_BUNDLE__* )\n";
+ LksStream << " }\n";
LksStream << "}\n";
LksStream << "INSERT BEFORE .data\n";
LksStream.flush();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54275.173382.patch
Type: text/x-patch
Size: 579 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181109/a18c9d73/attachment-0001.bin>
More information about the cfe-commits
mailing list