aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Serialization/ModuleManager.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2025-05-19 12:52:56 -0700
committerJan Svoboda <jan_svoboda@apple.com>2025-05-19 12:57:54 -0700
commit72b2219b3e2319e29831e4e9b07c440444f3add6 (patch)
tree642d37b95354df419c9e19630c583a5ce268849b /clang/lib/Serialization/ModuleManager.cpp
parent10d198b32cd0b6aaeeaf1a6217611797c01f47f7 (diff)
downloadllvm-72b2219b3e2319e29831e4e9b07c440444f3add6.zip
llvm-72b2219b3e2319e29831e4e9b07c440444f3add6.tar.gz
llvm-72b2219b3e2319e29831e4e9b07c440444f3add6.tar.bz2
Revert "[clang][modules] Timestamp-less validation API (#139987)"
This reverts commit 7a242387c950c7060143da6da0e6fb91f36bb458. Even after 175f8a44, the Modules/fmodules-validate-once-per-build-session.c test is not fixed on the clang-armv8-quick build bot. (Failure occurs on line 114.)
Diffstat (limited to 'clang/lib/Serialization/ModuleManager.cpp')
-rw-r--r--clang/lib/Serialization/ModuleManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Serialization/ModuleManager.cpp b/clang/lib/Serialization/ModuleManager.cpp
index 9fd7505..fa9533b 100644
--- a/clang/lib/Serialization/ModuleManager.cpp
+++ b/clang/lib/Serialization/ModuleManager.cpp
@@ -174,11 +174,11 @@ ModuleManager::addModule(StringRef FileName, ModuleKind Type,
NewModule->Index = Chain.size();
NewModule->FileName = FileName.str();
NewModule->ImportLoc = ImportLoc;
- NewModule->InputFilesValidated = false;
+ NewModule->InputFilesValidationTimestamp = 0;
if (NewModule->Kind == MK_ImplicitModule)
- NewModule->InputFilesValidated =
- ModCache->isMarkedUpToDate(NewModule->FileName);
+ NewModule->InputFilesValidationTimestamp =
+ ModCache->getModuleTimestamp(NewModule->FileName);
// Load the contents of the module
if (std::unique_ptr<llvm::MemoryBuffer> Buffer = lookupBuffer(FileName)) {