diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2025-05-14 14:31:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-14 14:31:23 -0700 |
commit | 960afcc90e8fb75b725ed331f4bc60eb2398d6e5 (patch) | |
tree | 9415bb216da3f252bc15f7c43218b695f0238f04 /clang/lib/Frontend/CompilerInstance.cpp | |
parent | a608b4914209f4238fe83a6b5fa8fd7219f11115 (diff) | |
download | llvm-960afcc90e8fb75b725ed331f4bc60eb2398d6e5.zip llvm-960afcc90e8fb75b725ed331f4bc60eb2398d6e5.tar.gz llvm-960afcc90e8fb75b725ed331f4bc60eb2398d6e5.tar.bz2 |
[clang][modules] Timestamp-less validation API (#138983)
Timestamps are an implementation detail of the cross-process module
cache implementation. This PR hides it from the `ModuleCache` API, which
simplifies the in-process implementation.
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 503d364..b3a23e6 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -72,7 +72,9 @@ CompilerInstance::CompilerInstance( ModuleCache *ModCache) : ModuleLoader(/*BuildingModule=*/ModCache), Invocation(std::move(Invocation)), - ModCache(ModCache ? ModCache : createCrossProcessModuleCache()), + ModCache(ModCache ? ModCache + : createCrossProcessModuleCache( + getHeaderSearchOpts().BuildSessionTimestamp)), ThePCHContainerOperations(std::move(PCHContainerOps)) { assert(this->Invocation && "Invocation must not be null"); } |