[clang] Reland [HIP] use offload wrapper for non-device-only non-rdc (#132869) (PR #143964)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 12 13:34:08 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"}) {
----------------
jhuber6 wrote:
I believe this is *only* `llvm` now so we probably don't need the loop.
https://github.com/llvm/llvm-project/pull/143964
More information about the cfe-commits
mailing list