aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2025-09-26 08:17:31 -0700
committerGitHub <noreply@github.com>2025-09-26 08:17:31 -0700
commit0e3c3165ea33043b8fa0457e535f50ca59312278 (patch)
tree169335250e399e0fb8a1d0fdff11c956a20e9417 /clang/lib/Frontend/CompilerInstance.cpp
parent129394e3f2cfb7fbac7b71a968a38328c82e9c8d (diff)
downloadllvm-0e3c3165ea33043b8fa0457e535f50ca59312278.zip
llvm-0e3c3165ea33043b8fa0457e535f50ca59312278.tar.gz
llvm-0e3c3165ea33043b8fa0457e535f50ca59312278.tar.bz2
[llvm][clang] Use the VFS in `FileCollector` (#160788)
This PR changes `llvm::FileCollector` to use the `llvm::vfs::FileSystem` API for making file paths absolute instead of using `llvm::sys::fs::make_absolute()` directly. This matches the behavior of the compiler on most other input files.
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index d6f3aec..c989ad2 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -503,7 +503,7 @@ void CompilerInstance::createPreprocessor(TranslationUnitKind TUKind) {
// then we're the top level compiler instance and need to create one.
if (!ModuleDepCollector && !DepOpts.ModuleDependencyOutputDir.empty()) {
ModuleDepCollector = std::make_shared<ModuleDependencyCollector>(
- DepOpts.ModuleDependencyOutputDir);
+ DepOpts.ModuleDependencyOutputDir, getVirtualFileSystemPtr());
}
// If there is a module dep collector, register with other dep collectors