diff options
author | Cyndy Ishida <cyndy_ishida@apple.com> | 2025-04-08 15:48:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-08 15:48:25 -0700 |
commit | 1365b5b1ad5d09a738dbe97b5a72902186e24d80 (patch) | |
tree | 741897b9e1bc5669b1a2c585e756030d5a597e61 /clang/lib/Frontend/FrontendActions.cpp | |
parent | b712068af26643d5fcbfd148b2084554b4e61650 (diff) | |
download | llvm-1365b5b1ad5d09a738dbe97b5a72902186e24d80.zip llvm-1365b5b1ad5d09a738dbe97b5a72902186e24d80.tar.gz llvm-1365b5b1ad5d09a738dbe97b5a72902186e24d80.tar.bz2 |
[clang][DependencyScanning] Track dependencies from prebuilt modules to determine IsInStableDir (#132237)
When a module is being scanned, it can depend on modules that have
already been built from a pch dependency. When this happens, the pcm
files are reused for the module dependencies. When this is the case,
check if input files recorded from the PCMs come from the provided
stable directories transitively since the scanner will not have access
to the full set of file dependencies from prebuilt modules.
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
-rw-r--r-- | clang/lib/Frontend/FrontendActions.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp index bf273c8..c5aeb92 100644 --- a/clang/lib/Frontend/FrontendActions.cpp +++ b/clang/lib/Frontend/FrontendActions.cpp @@ -777,10 +777,11 @@ namespace { /// Indicates that the AST file contains particular input file. /// /// \returns true to continue receiving the next input file, false to stop. - bool visitInputFile(StringRef Filename, bool isSystem, - bool isOverridden, bool isExplicitModule) override { + bool visitInputFile(StringRef FilenameAsRequested, StringRef Filename, + bool isSystem, bool isOverridden, + bool isExplicitModule) override { - Out.indent(2) << "Input file: " << Filename; + Out.indent(2) << "Input file: " << FilenameAsRequested; if (isSystem || isOverridden || isExplicitModule) { Out << " ["; |