diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2025-09-26 10:35:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-26 10:35:22 -0700 |
commit | 37282bcee10dc20d0469d014e566f42377f0c22c (patch) | |
tree | 6ec8f2e46cf59adeb1dfd0787e66f3915b4a55c5 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | ff98e516136a2e4c77934c52e6c7cef65a9fadee (diff) | |
download | llvm-37282bcee10dc20d0469d014e566f42377f0c22c.zip llvm-37282bcee10dc20d0469d014e566f42377f0c22c.tar.gz llvm-37282bcee10dc20d0469d014e566f42377f0c22c.tar.bz2 |
[clang] Load `-fembed-offload-object=` through the VFS (#160906)
This PR loads the path from `-fembed-offload-object=<path>` through the
VFS rather than going straight to the real file system. This matches the
behavior of other input files of the compiler. This technically changes
behavior in that `-fembed-offload-object=-` no longer loads the file
from stdin, but I don't think that was the intention of the original
code anyways.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 0eac7c3..875f06b 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -1556,7 +1556,7 @@ void CodeGenModule::Release() { EmitBackendOptionsMetadata(getCodeGenOpts()); // If there is device offloading code embed it in the host now. - EmbedObject(&getModule(), CodeGenOpts, getDiags()); + EmbedObject(&getModule(), CodeGenOpts, *getFileSystem(), getDiags()); // Set visibility from DLL storage class // We do this at the end of LLVM IR generation; after any operation |