[clang] Reland [HIP] use offload wrapper for non-device-only non-rdc (#132869) (PR #143964)

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 12 16:01:36 PDT 2025


================
@@ -310,8 +310,8 @@ Error relocateOffloadSection(const ArgList &Args, StringRef Output) {
   // Remove the old .llvm.offloading section to prevent further linking.
   ObjcopyArgs.emplace_back("--remove-section");
   ObjcopyArgs.emplace_back(".llvm.offloading");
-  for (StringRef Prefix : {"omp", "cuda", "hip"}) {
-    auto Section = (Prefix + "_offloading_entries").str();
+  for (StringRef Prefix : {"omp", "cuda", "hip", "llvm"}) {
----------------
yxsamliu wrote:

will remove unused code

https://github.com/llvm/llvm-project/pull/143964


More information about the cfe-commits mailing list