[llvm] [Offload] Have `doJITPostProcessing` accept multiple binaries (PR #148608)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 14 03:55:44 PDT 2025
================
@@ -2131,9 +2132,11 @@ struct AMDGPUDeviceTy : public GenericDeviceTy, AMDGenericDeviceTy {
if (sys::fs::remove(LinkerOutputFilePath))
return Plugin::error(ErrorCode::HOST_IO,
"failed to remove temporary output file for lld");
- if (sys::fs::remove(LinkerInputFilePath))
- return Plugin::error(ErrorCode::HOST_IO,
- "failed to remove temporary input file for lld");
+ for (auto &N : InputFilenames) {
+ if (sys::fs::remove(N))
+ return Plugin::error(ErrorCode::HOST_IO,
+ "failed to remove temporary input file for lld");
----------------
arsenm wrote:
I thought there was some temporary file helper in Support that managed the create and remove of the files for you
https://github.com/llvm/llvm-project/pull/148608
More information about the llvm-commits
mailing list